diff --git a/radio/src/bluetooth.cpp b/radio/src/bluetooth.cpp index 26397fc4c..e19547912 100644 --- a/radio/src/bluetooth.cpp +++ b/radio/src/bluetooth.cpp @@ -219,7 +219,7 @@ void Bluetooth::processTrainerByte(uint8_t data) crc ^= buffer[i]; } if (crc == buffer[BLUETOOTH_PACKET_SIZE-1]) { - if (buffer[0] == 0x80) { + if (buffer[0] == TRAINER_FRAME) { processTrainerFrame(buffer); } } @@ -249,7 +249,7 @@ void Bluetooth::sendTrainer() crc = 0x00; buffer[bufferIndex++] = START_STOP; // start byte - pushByte(0x80); // trainer frame type? + pushByte(TRAINER_FRAME); for (int channel=0; channel