From 629db8c71859101f5fc97ffebc5cff8111a348a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 27 Apr 2022 15:30:27 +0200 Subject: [PATCH] Fix build errors and add a bit of failsafe --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7b9abd2ac..7328feb79 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,12 +152,11 @@ void setup() DEBUG_MSG("\n\n//\\ E S H T /\\ S T / C\n\n"); initDeepSleep(); - - #if defined(TTGO_T_ECHO) - DEBUG_MSG("\n\nTTGO_T_ECHO PIN_EINK_PWR_ON\n\n"); + + // Testing this fix für erratic T-Echo boot behaviour +#if defined(TTGO_T_ECHO) && defined(PIN_EINK_PWR_ON) pinMode(PIN_EINK_PWR_ON, OUTPUT); digitalWrite(PIN_EINK_PWR_ON, HIGH); -#elif #endif #ifdef VEXT_ENABLE