mirror of https://github.com/ArduPilot/ardupilot
AP_VisualOdom: fix singleton panic message
This commit is contained in:
parent
a598045fd0
commit
8229174a76
|
@ -122,7 +122,7 @@ AP_VisualOdom::AP_VisualOdom()
|
||||||
AP_Param::setup_object_defaults(this, var_info);
|
AP_Param::setup_object_defaults(this, var_info);
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
if (_singleton != nullptr) {
|
if (_singleton != nullptr) {
|
||||||
AP_HAL::panic("must be singleton");
|
AP_HAL::panic("AP_VisualOdom must be singleton");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_singleton = this;
|
_singleton = this;
|
||||||
|
|
Loading…
Reference in New Issue