Remove redundant 1750(rely on button when TX)
All checks were successful
Build Firmware / build (push) Successful in 20s

This commit is contained in:
2025-04-01 17:48:00 +02:00
parent c0d3ba51a2
commit bbeb1d8fab
7 changed files with 3 additions and 69 deletions

View File

@@ -35,19 +35,16 @@ void FSKModem_TimeSlice500ms(void) {
switch (gSMSResponseState) {
case SMS_RESPONSE_ACK:
MSG_FSKSendData(&inBoundPacket);
UART_String("Acking");
gSMSResponseState = SMS_RESPONSE_IDLE;
SMSResponseCounter = 0;
break;
case SMS_RESPONSE_RETRANSMIT:
MSG_FSKSendData(&inBoundPacket);
UART_String("ReTX");
gSMSResponseState = SMS_RESPONSE_IDLE;
SMSResponseCounter = 0;
break;
case SMS_RESPONSE_RESEND:
MSG_FSKSendData(&dataPacket);
UART_String("ReSend");
gSMSResponseState = SMS_RESPONSE_IDLE;
SMSResponseCounter = 0;
break;
@@ -175,7 +172,6 @@ void processReceivedPacket(DataPacket *packet) {
uint16_t crcGot = inBoundPacket.data[0] | (inBoundPacket.data[1] << 8);
if (crcSent == crcGot) {
gGotACK = true;
UART_String("GOT ACK");
BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, true);
BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2_GREEN, true);
SMSResponseCounter = 1;
@@ -386,7 +382,6 @@ void FSK_HANDLE_IRQ(unsigned short irq) {
gFSKWriteIndex = 0;
memset(&inBoundPacket, 0, sizeof(DataPacket));
rxState = Receiving;
UART_String("Sync\n");
}
if (rx_fifo_almost_full && rxState == Receiving) {
@@ -407,7 +402,6 @@ void FSK_HANDLE_IRQ(unsigned short irq) {
BK4819_FskClearFifo();
rxState = Ready;
UART_String("FSK end\n");
if (gFSKWriteIndex > 2) {
// Validate checksum (assuming last 2 bytes are CRC-16)