Fixed compilation warnings

replace/e99529e5cc3b44ee7726b6a57099ab49ceab5c19
Silvano Seva 2020-12-07 21:43:00 +01:00 zatwierdzone przez Niccolò Izzo
rodzic 47dd9e2046
commit a38d3d2486
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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