From b04e3136652764c6262d5b717b9435ca10641eb3 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sun, 15 Aug 2021 10:34:57 -0700 Subject: [PATCH] minor debug output --- platformio.ini | 1 + src/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 2ed1d9928..79f838f82 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 eecdd0bf1..3e845e22d 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"); }