Compilation fix
This commit is contained in:
@@ -64,7 +64,7 @@ bool pushFrskyTelemetryData(uint8_t data)
|
||||
break;
|
||||
|
||||
case STATE_DATA_IN_FRAME:
|
||||
if (data == BYTESTUFF) {
|
||||
if (data == BYTE_STUFF) {
|
||||
dataState = STATE_DATA_XOR; // XOR next byte
|
||||
}
|
||||
else if (data == START_STOP) {
|
||||
|
||||
@@ -234,9 +234,9 @@ inline uint8_t TELEMETRY_RSSI()
|
||||
return telemetryData.rssi.value();
|
||||
}
|
||||
|
||||
#define START_STOP 0x7E
|
||||
#define BYTESTUFF 0x7D
|
||||
#define STUFF_MASK 0x20
|
||||
constexpr uint8_t START_STOP = 0x7E;
|
||||
constexpr uint8_t BYTE_STUFF = 0x7D;
|
||||
constexpr uint8_t STUFF_MASK = 0x20;
|
||||
|
||||
typedef enum {
|
||||
TS_IDLE = 0, // waiting for 0x5e frame marker
|
||||
|
||||
Reference in New Issue
Block a user