mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL_Empty: add panic method to scheduler
This commit is contained in:
parent
9656b0ad0e
commit
885fc79af5
@ -3,6 +3,8 @@
|
||||
|
||||
using namespace Empty;
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
EmptyScheduler::EmptyScheduler()
|
||||
{}
|
||||
|
||||
@ -51,6 +53,11 @@ void EmptyScheduler::begin_atomic()
|
||||
void EmptyScheduler::end_atomic()
|
||||
{}
|
||||
|
||||
void EmptyScheduler::panic(const prog_char_t *errormsg) {
|
||||
hal.console->println_P(errormsg);
|
||||
for(;;);
|
||||
}
|
||||
|
||||
void EmptyScheduler::reboot() {
|
||||
for(;;);
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ public:
|
||||
void begin_atomic();
|
||||
void end_atomic();
|
||||
|
||||
void panic(const prog_char_t *errormsg);
|
||||
void reboot();
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user