Corrected RSSI float to int and added SNR
RSSI display was wrong as it was lloking for a float. It is an int
This commit is contained in:
parent
c68154613d
commit
20a6abddbc
1 changed files with 3 additions and 1 deletions
|
|
@ -42,8 +42,10 @@ void loop()
|
|||
char buf[256];
|
||||
u8g2->drawStr(0, 12, "Received OK!");
|
||||
u8g2->drawStr(0, 26, recv.c_str());
|
||||
snprintf(buf, sizeof(buf), "RSSI:%.2f", LoRa.packetRssi());
|
||||
snprintf(buf, sizeof(buf), "RSSI:%i", LoRa.packetRssi());
|
||||
u8g2->drawStr(0, 40, buf);
|
||||
snprintf(buf, sizeof(buf), "SNR:%.1f", LoRa.packetSnr());
|
||||
u8g2->drawStr(0, 56, buf);
|
||||
u8g2->sendBuffer();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue