diff --git a/platformio.ini b/platformio.ini index 2ed1d992..79f838f8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -362,6 +362,7 @@ upload_protocol = jlink # add our variants files to the include and src paths # define build flags for the TFT_eSPI library - NOTE: WE NOT LONGER USE TFT_eSPI, it was for an earlier version of the TTGO eink screens # -DBUSY_PIN=3 -DRST_PIN=2 -DDC_PIN=28 -DCS_PIN=30 +# add -DCFG_SYSVIEW if you want to use the Segger systemview tool for OS profiling. build_flags = ${nrf52840_base.build_flags} -Ivariants/t-echo src_filter = ${nrf52_base.src_filter} +<../variants/t-echo> lib_deps = diff --git a/src/main.cpp b/src/main.cpp index eecdd0bf..3e845e22 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -646,7 +646,9 @@ void loop() mainController.nextThread->tillRun(millis())); */ // We want to sleep as long as possible here - because it saves power - if (!runASAP && loopCanSleep()) + if (!runASAP && loopCanSleep()) { + // if(delayMsec > 100) DEBUG_MSG("sleeping %ld\n", delayMsec); mainDelay.delay(delayMsec); + } // if (didWake) DEBUG_MSG("wake!\n"); }