mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 16:43:35 +08:00
fix coding style for gps drivers
This commit is contained in:
@@ -367,7 +367,6 @@ UBX::receive(const unsigned timeout)
|
||||
|
||||
/* abort after timeout if no useful packets received */
|
||||
if (time_started + timeout * 1000 < hrt_absolute_time()) {
|
||||
UBX_DEBUG("cur=%li, start=%li", hrt_absolute_time()/1000, time_started/1000);
|
||||
UBX_DEBUG("timed out, returning");
|
||||
return -1;
|
||||
}
|
||||
@@ -663,6 +662,7 @@ UBX::payload_rx_init()
|
||||
/* don't attempt for every message to disable, some might not be disabled */
|
||||
_disable_cmd_last = t;
|
||||
UBX_DEBUG("ubx disabling msg 0x%04x", SWAP16((unsigned)_rx_msg));
|
||||
|
||||
if (!configure_message_rate(_rx_msg, 0)) {
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user