diff --git a/README.md b/README.md index 5b79c0cc..e842faa9 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,8 @@ Note: all settings are stored in NVRAM and will be reloaded when device starts. 0 = ADR off 1 = ADR on [default] - note: set ADR to off, if device is moving, set to on, if not. + Note: set ADR to off, if device is moving, set to on, if not. + If ADR is set to on, SF value is shown inverted on display. 0x08 do nothing diff --git a/src/main.cpp b/src/main.cpp index 75cfa8d5..a33e5787 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -318,8 +318,13 @@ uint64_t uptime() { // update LoRa SF display (line 3) u8x8.setCursor(11,3); - u8x8.printf("SF:%c%c", lora_datarate[LMIC.datarate * 2], lora_datarate[LMIC.datarate * 2 + 1]); - + u8x8.printf("SF:"); + if (cfg.adrmode) // if ADR=on then display SF value inverse + u8x8.setInverseFont(1); + u8x8.printf("%c%c", lora_datarate[LMIC.datarate * 2], lora_datarate[LMIC.datarate * 2 + 1]); + if (cfg.adrmode) // switch off inverse if it was turned on + u8x8.setInverseFont(0); + // update wifi channel display (line 4) u8x8.setCursor(11,4); u8x8.printf("ch:%02d", channel);