mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 00:43:34 +08:00
gps: fix code style
This commit is contained in:
@@ -711,7 +711,8 @@ GPS::task_main()
|
|||||||
switch (_mode) {
|
switch (_mode) {
|
||||||
case GPS_DRIVER_MODE_NONE:
|
case GPS_DRIVER_MODE_NONE:
|
||||||
_mode = GPS_DRIVER_MODE_UBX;
|
_mode = GPS_DRIVER_MODE_UBX;
|
||||||
//no break
|
|
||||||
|
//no break
|
||||||
case GPS_DRIVER_MODE_UBX:
|
case GPS_DRIVER_MODE_UBX:
|
||||||
_helper = new GPSDriverUBX(_interface, &GPS::callback, this, &_report_gps_pos, _p_report_sat_info);
|
_helper = new GPSDriverUBX(_interface, &GPS::callback, this, &_report_gps_pos, _p_report_sat_info);
|
||||||
break;
|
break;
|
||||||
@@ -1183,6 +1184,7 @@ gps_main(int argc, char *argv[])
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
PX4_ERR("unrecognized command, try 'start', 'stop', 'test', 'reset' or 'status'");
|
PX4_ERR("unrecognized command, try 'start', 'stop', 'test', 'reset' or 'status'");
|
||||||
PX4_ERR("[-d " GPS_DEFAULT_UART_PORT "][-f (for enabling fake)][-s (to enable sat info)] [-i {spi|uart}] [-p {ubx|mtk|ash}]");
|
PX4_ERR("[-d " GPS_DEFAULT_UART_PORT
|
||||||
|
"][-f (for enabling fake)][-s (to enable sat info)] [-i {spi|uart}] [-p {ubx|mtk|ash}]");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user