mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
HAL_ChibiOS: check for logger instance before use
This commit is contained in:
parent
7c61d66d75
commit
57c573552c
@ -238,7 +238,9 @@ void Scheduler::reboot(bool hold_in_bootloader)
|
||||
|
||||
#ifndef NO_DATAFLASH
|
||||
//stop logging
|
||||
AP::logger().StopLogging();
|
||||
if (AP_Logger::get_singleton()) {
|
||||
AP::logger().StopLogging();
|
||||
}
|
||||
|
||||
// stop sdcard driver, if active
|
||||
sdcard_stop();
|
||||
|
Loading…
Reference in New Issue
Block a user