From 590cc9dd5ccb179d827517ac21dc27f636e4ec08 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 16 Dec 2020 18:54:38 +0100 Subject: [PATCH] skip i2cscan after wakeup from sleep --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b567454a..33a7a650 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -208,7 +208,8 @@ void setup() { _ASSERT(loadConfig()); // includes initialize if necessary // now that we are powered, we scan i2c bus for devices - i2c_scan(); + if (RTC_runmode == RUNMODE_POWERCYCLE) + i2c_scan(); // initialize display #ifdef HAS_DISPLAY