From 817c99e09ccdd9e47ace7e967a6ed2ef02da7a16 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sun, 22 Nov 2020 19:12:11 -0800 Subject: [PATCH] trying to fix it again --- src/Power.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Power.cpp b/src/Power.cpp index 4e30c8288..ba908e3fb 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -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 diff --git a/src/main.cpp b/src/main.cpp index 228f2b3e3..4c0af7f7b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); }