Skip to content

Commit

Permalink
Ensure RSSI is int32
Browse files Browse the repository at this point in the history
This will fix the RSSI display in the info section
  • Loading branch information
marcoSchr authored and silseva committed Mar 2, 2024
1 parent b71509e commit 9c2bec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openrtx/src/ui/default/ui_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ int _ui_getInfoValueName(char *buf, uint8_t max_len, uint8_t index)
sniprintf(buf, max_len, "%d%%", last_state.charge);
break;
case 3: // RSSI
sniprintf(buf, max_len, "%"PRIu32"dBm", last_state.rssi);
sniprintf(buf, max_len, "%"PRIi32"dBm", last_state.rssi);
break;
case 4: // Heap usage
sniprintf(buf, max_len, "%dB", getHeapSize() - getCurrentFreeHeap());
Expand Down

0 comments on commit 9c2bec9

Please sign in to comment.