mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-14 20:58:30 -04:00
AP_GPS: fixed warning
This commit is contained in:
parent
86b58314c4
commit
7a9ed0a5a1
@ -74,7 +74,7 @@ AP_GPS_UBLOX::init(AP_HAL::UARTDriver *s, enum GPS_Engine_Setting nav_setting)
|
|||||||
void
|
void
|
||||||
AP_GPS_UBLOX::send_next_rate_update(void)
|
AP_GPS_UBLOX::send_next_rate_update(void)
|
||||||
{
|
{
|
||||||
if (_port->txspace() < sizeof(struct ubx_header)+sizeof(struct ubx_cfg_nav_rate)+2) {
|
if (_port->txspace() < (int16_t)(sizeof(struct ubx_header)+sizeof(struct ubx_cfg_nav_rate)+2)) {
|
||||||
// not enough space - do it next time
|
// not enough space - do it next time
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user