From 58f89bf1bae7cf2b3c4e4b34c714e04e09e0ef3b Mon Sep 17 00:00:00 2001 From: 3djc Date: Fri, 16 Apr 2021 19:03:17 +0200 Subject: [PATCH] Cosmetics --- radio/src/bluetooth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/bluetooth.cpp b/radio/src/bluetooth.cpp index 11576c9be..8e50ca6fa 100644 --- a/radio/src/bluetooth.cpp +++ b/radio/src/bluetooth.cpp @@ -217,10 +217,10 @@ void Bluetooth::processTrainerByte(uint8_t data) if (bufferIndex >= BLUETOOTH_PACKET_SIZE) { uint8_t crc = 0x00; - for (int i=0; i<(BLUETOOTH_PACKET_SIZE-1); i++) { + for (int i = 0; i < BLUETOOTH_PACKET_SIZE - 1; i++) { crc ^= buffer[i]; } - if (crc == buffer[BLUETOOTH_PACKET_SIZE-1]) { + if (crc == buffer[BLUETOOTH_PACKET_SIZE - 1]) { if (buffer[0] == TRAINER_FRAME) { processTrainerFrame(buffer); }