mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-17 18:42:10 +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()
|
void Power::shutdown()
|
||||||
{
|
{
|
||||||
#ifdef AXP192_SLAVE_ADDRESS
|
#ifdef TBEAM_V10
|
||||||
DEBUG_MSG("Shutting down\n");
|
DEBUG_MSG("Shutting down\n");
|
||||||
axp.shutdown();
|
axp.shutdown();
|
||||||
#endif
|
#endif
|
||||||
|
@ -233,7 +233,7 @@ class ButtonThread : public OSThread
|
|||||||
|
|
||||||
// If user button is held down for 10 seconds, shutdown the device.
|
// If user button is held down for 10 seconds, shutdown the device.
|
||||||
if (millis() - longPressTime > 10 * 1000) {
|
if (millis() - longPressTime > 10 * 1000) {
|
||||||
#ifdef AXP192_SLAVE_ADDRESS
|
#ifdef TBEAM_V10
|
||||||
if (axp192_found == true) {
|
if (axp192_found == true) {
|
||||||
power->shutdown();
|
power->shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user