Skip to content

Commit

Permalink
Update gps.cpp
Browse files Browse the repository at this point in the history
style fix
  • Loading branch information
dronesalot authored Nov 17, 2024
1 parent 514a812 commit 2e0c5a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drivers/gps/gps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ int GPS::pollOrRead(uint8_t *buf, size_t buf_length, int timeout)

if (_interface == GPSHelper::Interface::UART) {
ret = _uart.readAtLeast(buf, buf_length, math::min(character_count, buf_length), timeout_adjusted);

if (ret > 0) {
_num_bytes_read += ret;
}
Expand Down

0 comments on commit 2e0c5a1

Please sign in to comment.