1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 03:19:53 +03:00

Cosmetics

This commit is contained in:
3djc 2021-04-16 18:02:10 +02:00
parent eb732d2721
commit 076996f3d4

View file

@ -217,7 +217,7 @@ void Bluetooth::processTrainerByte(uint8_t data)
if (bufferIndex >= BLUETOOTH_PACKET_SIZE) { if (bufferIndex >= BLUETOOTH_PACKET_SIZE) {
uint8_t crc = 0x00; 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]; crc ^= buffer[i];
} }
if (crc == buffer[BLUETOOTH_PACKET_SIZE-1]) { if (crc == buffer[BLUETOOTH_PACKET_SIZE-1]) {