From af046e7dbdfd76b4a20a0c6446431875305c614f Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 26 Aug 2020 13:59:15 -0700 Subject: [PATCH] bug #322 - ttgo lora32 deep sleep oh - I think I found the problem (probably)! we were isolating gpio12 (which isn't used on other boards) to save power during sleep. gpio12 is the button for this board. @thomslik would you mind pulling this commit and seeing if it works better? --- src/configuration.h | 1 + src/sleep.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configuration.h b/src/configuration.h index 4b1addbb3..50e16e6ac 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -309,6 +309,7 @@ along with this program. If not, see . #define BUTTON_PIN \ 12 // If defined, this will be used for user button presses, if your board doesn't have a physical switch, you can wire one // between this pin and ground +#define BUTTON_NEED_PULLUP #define USE_RF95 #define LORA_DIO0 26 // a No connect on the SX1262 module diff --git a/src/sleep.cpp b/src/sleep.cpp index f7d61eb77..3bce72669 100644 --- a/src/sleep.cpp +++ b/src/sleep.cpp @@ -197,7 +197,7 @@ void doDeepSleep(uint64_t msecToWake) static const uint8_t rtcGpios[] = {/* 0, */ 2, /* 4, */ #ifndef USE_JTAG - 12, 13, + 13, /* 14, */ /* 15, */ #endif /* 25, */ 26, /* 27, */