diff --git a/docs/software/nrf52-TODO.md b/docs/software/nrf52-TODO.md index 0dbe347a..5d9c7577 100644 --- a/docs/software/nrf52-TODO.md +++ b/docs/software/nrf52-TODO.md @@ -62,6 +62,7 @@ Needed to be fully functional at least at the same level of the ESP32 boards. At Nice ideas worth considering someday... +- make/find a multithread safe debug logging class (include remote logging and timestamps and levels). make each log event atomic. - turn on freertos stack size checking - Currently we use Nordic's vendor ID, which is apparently okay: https://devzone.nordicsemi.com/f/nordic-q-a/44014/using-nordic-vid-and-pid-for-nrf52840 and I just picked a PID of 0x4403 - Use NRF logger module (includes flash logging etc...) instead of DEBUG_MSG diff --git a/src/mesh/RadioInterface.cpp b/src/mesh/RadioInterface.cpp index 0a360909..6e98a364 100644 --- a/src/mesh/RadioInterface.cpp +++ b/src/mesh/RadioInterface.cpp @@ -7,6 +7,7 @@ #include #include +// 1kb was too small #define RADIO_STACK_SIZE 4096 RadioInterface::RadioInterface() : txQueue(MAX_TX_QUEUE) diff --git a/src/screen.cpp b/src/screen.cpp index 00be30f9..54c57457 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -315,7 +315,7 @@ static void drawNodeInfo(OLEDDisplay *display, OLEDDisplayUiState *state, int16_ const char *username = node->has_user ? node->user.long_name : "Unknown Name"; static char signalStr[20]; - snprintf(signalStr, sizeof(signalStr), "Signal: %ld", node->snr); + snprintf(signalStr, sizeof(signalStr), "Signal: %.0f", node->snr); uint32_t agoSecs = sinceLastSeen(node); static char lastStr[20];