diff --git a/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp b/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp index be1523b..455e896 100644 --- a/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp +++ b/Platformio/HAL/Targets/ESP32/HardwareRevX.hpp @@ -43,8 +43,8 @@ public: virtual bool getWakeupByIMUEnabled() override; virtual void setWakeupByIMUEnabled(bool wakeupByIMUEnabled) override; - virtual uint16_t getSleepTimeout(); - virtual void setSleepTimeout(uint16_t sleepTimeout); + virtual uint16_t getSleepTimeout() override; + virtual void setSleepTimeout(uint16_t sleepTimeout) override; /// @brief To be ran in loop out in main // TODO move to a freertos task diff --git a/Platformio/HAL/Targets/Simulator/HardwareSimulator.cpp b/Platformio/HAL/Targets/Simulator/HardwareSimulator.cpp index a47bfb5..e3ed62c 100644 --- a/Platformio/HAL/Targets/Simulator/HardwareSimulator.cpp +++ b/Platformio/HAL/Targets/Simulator/HardwareSimulator.cpp @@ -45,4 +45,28 @@ std::shared_ptr HardwareSimulator::display(){ } std::shared_ptr HardwareSimulator::wifi(){ return mWifiHandler; -} \ No newline at end of file +} + +char HardwareSimulator::getCurrentDevice(){ + return 0; +} + +void HardwareSimulator::setCurrentDevice(char currentDevice){ + +} + +bool HardwareSimulator::getWakeupByIMUEnabled(){ + return true; +} + +void HardwareSimulator::setWakeupByIMUEnabled(bool wakeupByIMUEnabled){ + +} + +uint16_t HardwareSimulator::getSleepTimeout(){ + return 20000; +} + +void HardwareSimulator::setSleepTimeout(uint16_t sleepTimeout){ + +} diff --git a/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp b/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp index f66caf4..c1ec999 100644 --- a/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp +++ b/Platformio/HAL/Targets/Simulator/HardwareSimulator.hpp @@ -24,6 +24,15 @@ public: virtual std::shared_ptr display() override; virtual std::shared_ptr wifi() override; + virtual char getCurrentDevice() override; + virtual void setCurrentDevice(char currentDevice) override; + + virtual bool getWakeupByIMUEnabled() override; + virtual void setWakeupByIMUEnabled(bool wakeupByIMUEnabled) override; + + virtual uint16_t getSleepTimeout() override; + virtual void setSleepTimeout(uint16_t sleepTimeout) override; + private: std::thread mTickThread; std::thread mHardwareStatusTitleUpdate;