mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
SITL: added panic() method in scheduler
This commit is contained in:
parent
475496cee2
commit
dcc17dad94
@ -192,4 +192,9 @@ void SITLScheduler::timer_event()
|
||||
_in_timer_proc = false;
|
||||
}
|
||||
|
||||
void SITLScheduler::panic(const prog_char_t *errormsg) {
|
||||
hal.console->println_P(errormsg);
|
||||
for(;;);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -29,6 +29,7 @@ public:
|
||||
void begin_atomic();
|
||||
void end_atomic();
|
||||
void reboot();
|
||||
void panic(const prog_char_t *errormsg);
|
||||
|
||||
bool interrupts_are_blocked(void) { return _nested_atomic_ctr != 0; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user