Skip to content

Commit

Permalink
Fix compilation warning during mduv3x0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Derecho authored and silseva committed Feb 11, 2024
1 parent 02bcec0 commit ce8e758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openrtx/src/ui/default/ui_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
***************************************************************************/

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include <utils.h>
#include <ui/ui_default.h>
#include <interfaces/nvmem.h>
Expand Down 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, "%ddBm", last_state.rssi);
sniprintf(buf, max_len, "%"PRIu32"dBm", last_state.rssi);
break;
case 4: // Heap usage
sniprintf(buf, max_len, "%dB", getHeapSize() - getCurrentFreeHeap());
Expand Down

0 comments on commit ce8e758

Please sign in to comment.