Compilation fix

This commit is contained in:
Bertrand Songis
2019-11-15 16:33:11 +01:00
parent 3a7e006635
commit 42a59dca35
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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) {
+3 -3
View File
@@ -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