mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 06:32:06 +00:00
Remove TTGO_T_ECHO gating for PIN_POWER_EN
Signed-off-by: Andrew Yong <me@ndoo.sg>
This commit is contained in:
parent
ca560d64ea
commit
3e9e0fdd49
@ -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);
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user