Fixed compilation warnings

This commit is contained in:
Silvano Seva 2020-12-07 21:43:00 +01:00 committed by Niccolò Izzo
parent 47dd9e2046
commit a38d3d2486
1 changed files with 2 additions and 2 deletions

View File

@ -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);