Moves the shutdown thread into the Power class, make shutdown and reboot private (#7415)

This commit is contained in:
Jonathan Bennett
2025-07-22 06:21:51 -05:00
committed by GitHub
parent fff12979a2
commit 86960cdb1d
5 changed files with 51 additions and 51 deletions

View File

@@ -110,7 +110,7 @@ class Power : private concurrency::OSThread
Power();
void shutdown();
void powerCommandsCheck();
void readPowerStatus();
virtual bool setup();
virtual int32_t runOnce() override;
@@ -130,6 +130,8 @@ class Power : private concurrency::OSThread
bool lipoChargerInit();
private:
void shutdown();
void reboot();
// open circuit voltage lookup table
uint8_t low_voltage_counter;
#ifdef DEBUG_HEAP