mirror of https://github.com/ArduPilot/ardupilot
AP_CANManager: panic if can manager is used before allocation
This commit is contained in:
parent
23d9be3499
commit
8a0d98967f
|
@ -36,6 +36,9 @@ public:
|
|||
|
||||
static AP_CANManager* get_singleton()
|
||||
{
|
||||
if (_singleton == nullptr) {
|
||||
AP_HAL::panic("CANManager used before allocation.");
|
||||
}
|
||||
return _singleton;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue