mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
trying to fix it again
This commit is contained in:
parent
9801a62d2d
commit
817c99e09c
@ -136,7 +136,7 @@ bool Power::setup()
|
||||
|
||||
void Power::shutdown()
|
||||
{
|
||||
#ifdef AXP192_SLAVE_ADDRESS
|
||||
#ifdef TBEAM_V10
|
||||
DEBUG_MSG("Shutting down\n");
|
||||
axp.shutdown();
|
||||
#endif
|
||||
|
@ -233,7 +233,7 @@ class ButtonThread : public OSThread
|
||||
|
||||
// If user button is held down for 10 seconds, shutdown the device.
|
||||
if (millis() - longPressTime > 10 * 1000) {
|
||||
#ifdef AXP192_SLAVE_ADDRESS
|
||||
#ifdef TBEAM_V10
|
||||
if (axp192_found == true) {
|
||||
power->shutdown();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user