Remove TTGO_T_ECHO gating for PIN_POWER_EN

Signed-off-by: Andrew Yong <me@ndoo.sg>
This commit is contained in:
Andrew Yong 2024-06-18 21:26:45 +08:00
parent ca560d64ea
commit 3e9e0fdd49
2 changed files with 1 additions and 3 deletions

View File

@ -242,7 +242,7 @@ void setup()
initDeepSleep(); initDeepSleep();
// power on peripherals // power on peripherals
#if defined(TTGO_T_ECHO) && defined(PIN_POWER_EN) #if defined(PIN_POWER_EN)
pinMode(PIN_POWER_EN, OUTPUT); pinMode(PIN_POWER_EN, OUTPUT);
digitalWrite(PIN_POWER_EN, HIGH); digitalWrite(PIN_POWER_EN, HIGH);
// digitalWrite(PIN_POWER_EN1, INPUT); // digitalWrite(PIN_POWER_EN1, INPUT);

View File

@ -231,12 +231,10 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
nodeDB->saveToDisk(); nodeDB->saveToDisk();
#ifdef TTGO_T_ECHO
#ifdef PIN_POWER_EN #ifdef PIN_POWER_EN
pinMode(PIN_POWER_EN, INPUT); // power off peripherals pinMode(PIN_POWER_EN, INPUT); // power off peripherals
// pinMode(PIN_POWER_EN1, INPUT_PULLDOWN); // pinMode(PIN_POWER_EN1, INPUT_PULLDOWN);
#endif #endif
#endif
#if HAS_GPS #if HAS_GPS
// Kill GPS power completely (even if previously we just had it in sleep mode) // Kill GPS power completely (even if previously we just had it in sleep mode)
if (gps) if (gps)