fix power bug
All checks were successful
Build Firmware / build (push) Successful in 37s

This commit is contained in:
2025-03-31 11:51:11 +02:00
parent 85fb527020
commit 101bde7463
11 changed files with 118 additions and 55 deletions

View File

@@ -3,10 +3,10 @@
//
#include "fskmodem.h"
#include "eeprom.h"
uint16_t TONE2_FREQ;
uint8_t seq = 0;
DataPacket dataPacket;
DataPacket inBoundPacket;
@@ -309,6 +309,10 @@ void MSG_FSKSendData(DataPacket *dataPacketIn) {
void prepareDataPacket() {
dataPacket.src = gEeprom.FSKSRCAddress;
dataPacket.seq = seq++;
uint8_t Data[8];
EEPROM_ReadBuffer(SEQParameterEEPROM, Data, 8);
dataPacket.seq = Data[0];
Data[0]++;
EEPROM_WriteBuffer(SEQParameterEEPROM, Data);
dataPacket.ttl = 20;
}