AP_HAL_Empty: rename system_initialized() and add is_system_initialized()

This commit is contained in:
Andy Piper 2020-12-23 11:27:56 +00:00 committed by Andrew Tridgell
parent 74633e55cc
commit 526ae5d2f4
3 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,7 @@ void HAL_Empty::run(int argc, char* const argv[], Callbacks* callbacks) const
_member->init();
callbacks->setup();
scheduler->system_initialized();
scheduler->set_system_initialized();
for (;;) {
callbacks->loop();

View File

@ -28,7 +28,7 @@ void Scheduler::register_io_process(AP_HAL::MemberProc k)
void Scheduler::register_timer_failsafe(AP_HAL::Proc, uint32_t period_us)
{}
void Scheduler::system_initialized()
void Scheduler::set_system_initialized()
{}
void Scheduler::reboot(bool hold_in_bootloader) {

View File

@ -13,7 +13,8 @@ public:
void register_timer_failsafe(AP_HAL::Proc, uint32_t period_us) override;
void system_initialized() override;
void set_system_initialized() override;
bool is_system_initialized() override { return true; }
void reboot(bool hold_in_bootloader) override;