Merge pull request #8425 from rotorman/patch-1

Bluetooth: making better use of constants
This commit is contained in:
Bertrand Songis
2021-04-16 18:00:54 +02:00
committed by GitHub
2 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -259,9 +259,10 @@ inline uint8_t TELEMETRY_RSSI()
return telemetryData.rssi.value();
}
constexpr uint8_t START_STOP = 0x7E;
constexpr uint8_t BYTE_STUFF = 0x7D;
constexpr uint8_t STUFF_MASK = 0x20;
constexpr uint8_t START_STOP = 0x7E;
constexpr uint8_t BYTE_STUFF = 0x7D;
constexpr uint8_t STUFF_MASK = 0x20;
constexpr uint8_t TRAINER_FRAME = 0x80;
typedef enum {
TS_IDLE = 0, // waiting for 0x5e frame marker