From a38d3d24860d24ae00d337c5aa233966607037b7 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Mon, 7 Dec 2020 21:43:00 +0100 Subject: [PATCH] Fixed compilation warnings --- openrtx/src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrtx/src/ui.c b/openrtx/src/ui.c index c1a8f097..c79e2b91 100644 --- a/openrtx/src/ui.c +++ b/openrtx/src/ui.c @@ -259,14 +259,14 @@ void _ui_drawMiddleVFO(state_t* last_state) { // Print VFO frequencies char freq_buf[20] = ""; - snprintf(freq_buf, sizeof(freq_buf), "Rx: %03u.%05u", + snprintf(freq_buf, sizeof(freq_buf), "Rx: %03lu.%05lu", last_state->channel.rx_frequency/1000000, last_state->channel.rx_frequency%1000000/10); gfx_print(layout.line2_pos, freq_buf, layout.line1_font, TEXT_ALIGN_CENTER, color_white); - snprintf(freq_buf, sizeof(freq_buf), "Tx: %03u.%05u", + snprintf(freq_buf, sizeof(freq_buf), "Tx: %03lu.%05lu", last_state->channel.tx_frequency/1000000, last_state->channel.tx_frequency%1000000/10);