From 526ae5d2f4c27a21328d7f7e0dd90acca531ff05 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 23 Dec 2020 11:27:56 +0000 Subject: [PATCH] AP_HAL_Empty: rename system_initialized() and add is_system_initialized() --- libraries/AP_HAL_Empty/HAL_Empty_Class.cpp | 2 +- libraries/AP_HAL_Empty/Scheduler.cpp | 2 +- libraries/AP_HAL_Empty/Scheduler.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL_Empty/HAL_Empty_Class.cpp b/libraries/AP_HAL_Empty/HAL_Empty_Class.cpp index 502e43c1d6..103e980868 100644 --- a/libraries/AP_HAL_Empty/HAL_Empty_Class.cpp +++ b/libraries/AP_HAL_Empty/HAL_Empty_Class.cpp @@ -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(); diff --git a/libraries/AP_HAL_Empty/Scheduler.cpp b/libraries/AP_HAL_Empty/Scheduler.cpp index f0b344d730..76d3746a5b 100644 --- a/libraries/AP_HAL_Empty/Scheduler.cpp +++ b/libraries/AP_HAL_Empty/Scheduler.cpp @@ -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) { diff --git a/libraries/AP_HAL_Empty/Scheduler.h b/libraries/AP_HAL_Empty/Scheduler.h index 13e6fe164b..740fc737de 100644 --- a/libraries/AP_HAL_Empty/Scheduler.h +++ b/libraries/AP_HAL_Empty/Scheduler.h @@ -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;