Skip to content

Commit

Permalink
Missing brackets GPS Ublox bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikOfTheRa committed Nov 16, 2017
1 parent b8d7d2e commit 66b6372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MW_OSD/GPS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ bool GPS_UBLOX_newFrame(uint8_t data) {
_step++;
_ck_b += (_ck_a += data); // checksum byte
_payload_length += (uint16_t)(data << 8);
if (_payload_length > 512)||(_payload_length == 0) {
if ((_payload_length > 512)||(_payload_length == 0)) {
_payload_length = 0;
_step = 0;
}
Expand Down

0 comments on commit 66b6372

Please sign in to comment.