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;
|
_in_timer_proc = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SITLScheduler::panic(const prog_char_t *errormsg) {
|
||||||
|
hal.console->println_P(errormsg);
|
||||||
|
for(;;);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,6 +29,7 @@ public:
|
|||||||
void begin_atomic();
|
void begin_atomic();
|
||||||
void end_atomic();
|
void end_atomic();
|
||||||
void reboot();
|
void reboot();
|
||||||
|
void panic(const prog_char_t *errormsg);
|
||||||
|
|
||||||
bool interrupts_are_blocked(void) { return _nested_atomic_ctr != 0; }
|
bool interrupts_are_blocked(void) { return _nested_atomic_ctr != 0; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user