Skip to content

Commit

Permalink
editorial change: corrected obsolete comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mha1 committed May 5, 2023
1 parent 54220ab commit 99d19db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/telemetry/mlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void processExternalMLinkSerialData(void* ctx, uint8_t data, uint8_t* buffer, ui
uint8_t sum = 1; // sanity check: checksum
for (uint8_t i = 0; i < MSB_EXT_MODULE_PACKET_LEN; i++)
sum += buffer[i]; // expect sum == 1+0xff = 0x00 for valid packet
if (sum) { // adding 1 -> expect 0x00 if checksum ok
if (sum) { // fail packet if sum is not equal to 0x00
return;
}

Expand Down

0 comments on commit 99d19db

Please sign in to comment.