diff --git a/geeksville-private/TODO.md b/geeksville-private/TODO.md index 53608c94c..18b49f91f 100644 --- a/geeksville-private/TODO.md +++ b/geeksville-private/TODO.md @@ -2,13 +2,15 @@ You probably don't care about this section - skip to the next one. -* list portduino on platformio +* USB nrf52 blocks on reads!!! https://github.com/meshtastic/Meshtastic-device/issues/838 +* send debug info 'in-band' +* fix wifi connections for mqtt * router mode dropping messages? https://meshtastic.discourse.group/t/router-mode-missing-messages/3329/3 -* fix ttgo eink screen +* usb lora dongle from pine64 + +* list portduino on platformio * figure our wss for mqtt.meshtastic - use cloudflare? 2052 ws, 2053 crypt * measure rak4630 power draw and turn off power for GPS most of the time. We should be able to run on the small solar panel. -* pine64 lora module -* @havealoha fixedposition not working * ask for vercel access * finish plan for riot.im * turn on setTx(timeout) and state = setDioIrqParams(SX126X_IRQ_TX_DONE | SX126X_IRQ_TIMEOUT, SX126X_IRQ_TX_DONE | SX126X_IRQ_TIMEOUT); in sx1262 code diff --git a/src/nrf52/main-nrf52.cpp b/src/nrf52/main-nrf52.cpp index 647aefe2b..ab109205b 100644 --- a/src/nrf52/main-nrf52.cpp +++ b/src/nrf52/main-nrf52.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +// #include #include "NRF52Bluetooth.h" #include "error.h" @@ -22,7 +22,9 @@ static inline void debugger_break(void) bool loopCanSleep() { // turn off sleep only while connected via USB - return !(TinyUSBDevice.mounted() && !TinyUSBDevice.suspended()); + // return true; + return !Serial; // the bool operator on the nrf52 serial class returns true if connected to a PC currently + // return !(TinyUSBDevice.mounted() && !TinyUSBDevice.suspended()); } // handle standard gcc assert failures @@ -92,7 +94,7 @@ void setBluetoothEnable(bool on) } /** - * Override printf to use the SEGGER output library + * Override printf to use the SEGGER output library (note - this does not effect the printf method on the debug console) */ int printf(const char *fmt, ...) {