trying to fix it again

This commit is contained in:
Jm Casler 2020-11-22 19:12:11 -08:00
parent 9801a62d2d
commit 817c99e09c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();
}