mirror of
https://github.com/opentx/opentx.git
synced 2025-07-12 19:10:19 +03:00
Cosmetics
This commit is contained in:
parent
eb732d2721
commit
076996f3d4
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ 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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue