mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:53:34 +08:00
fix gpssim: properly handle the case where gpssim is not running
This commit is contained in:
@@ -529,6 +529,7 @@ info()
|
|||||||
{
|
{
|
||||||
if (g_dev == nullptr) {
|
if (g_dev == nullptr) {
|
||||||
PX4_ERR("gpssim not running");
|
PX4_ERR("gpssim not running");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_dev->print_info();
|
g_dev->print_info();
|
||||||
|
|||||||
Reference in New Issue
Block a user