SNR is now a float, fix the screen display

1.2-legacy
geeksville 2020-05-01 12:31:36 -07:00
rodzic 50213d8323
commit e084699704
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -7,6 +7,7 @@
#include <pb_decode.h>
#include <pb_encode.h>
// 1kb was too small
#define RADIO_STACK_SIZE 4096
RadioInterface::RadioInterface() : txQueue(MAX_TX_QUEUE)

Wyświetl plik

@ -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];