mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-27 20:21:52 +00:00
Moves the shutdown thread into the Power class, make shutdown and reboot private (#7415)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user