Skip to content

Commit

Permalink
Remove TTGO_T_ECHO gating for PIN_POWER_EN
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Yong <[email protected]>
  • Loading branch information
ndoo committed Jun 18, 2024
1 parent 5fceab7 commit 9b3e1cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void setup()
initDeepSleep();

// power on peripherals
#if defined(TTGO_T_ECHO) && defined(PIN_POWER_EN)
#if defined(PIN_POWER_EN)
pinMode(PIN_POWER_EN, OUTPUT);
digitalWrite(PIN_POWER_EN, HIGH);
// digitalWrite(PIN_POWER_EN1, INPUT);
Expand Down
2 changes: 0 additions & 2 deletions src/sleep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,10 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)

nodeDB->saveToDisk();

#ifdef TTGO_T_ECHO
#ifdef PIN_POWER_EN
pinMode(PIN_POWER_EN, INPUT); // power off peripherals
// pinMode(PIN_POWER_EN1, INPUT_PULLDOWN);
#endif
#endif
#if HAS_GPS
// Kill GPS power completely (even if previously we just had it in sleep mode)
if (gps)
Expand Down

0 comments on commit 9b3e1cb

Please sign in to comment.