UI: Move VFO to 2nd and 3rd line, remove VFO Demo text

This commit is contained in:
Federico Amedeo Izzo 2020-11-19 21:02:19 +01:00
parent 1cf2a40182
commit 0ebd942c7a
1 changed files with 2 additions and 5 deletions

View File

@ -220,12 +220,9 @@ void _ui_drawVFO(state_t state)
// Print VFO frequencies // Print VFO frequencies
char freq_buf[20] = ""; char freq_buf[20] = "";
snprintf(freq_buf, sizeof(freq_buf), "Rx: %09.5f", state.rx_freq); snprintf(freq_buf, sizeof(freq_buf), "Rx: %09.5f", state.rx_freq);
gfx_print(layout.line1_pos, freq_buf, layout.line1_font, TEXT_ALIGN_CENTER, color_white); gfx_print(layout.line2_pos, freq_buf, layout.line1_font, TEXT_ALIGN_CENTER, color_white);
snprintf(freq_buf, sizeof(freq_buf), "Tx: %09.5f", state.tx_freq); snprintf(freq_buf, sizeof(freq_buf), "Tx: %09.5f", state.tx_freq);
gfx_print(layout.line2_pos, freq_buf, layout.line2_font, TEXT_ALIGN_CENTER, color_white); gfx_print(layout.line3_pos, freq_buf, layout.line2_font, TEXT_ALIGN_CENTER, color_white);
// Print VFO Demo on line 3
char line3_buf[10] = "VFO Demo";
gfx_print(layout.line3_pos, line3_buf, layout.line3_font, TEXT_ALIGN_CENTER, color_white);
} }
void _ui_drawBottomBar() void _ui_drawBottomBar()