This commit is contained in:
Олег Бородин
2024-08-26 23:21:17 +02:00
parent bf1294d95e
commit bcc15559c2
3 changed files with 16 additions and 7 deletions

15
contr.c
View File

@@ -376,17 +376,18 @@ void contr_show_ptt(void) {
void contr_show_button(void) {
if (button_is_pressed()) {
disp_string(3, 3, "BT");
disp_string(3, 6, "*");
} else {
disp_string(3, 3, " ");
disp_string(3, 6, " ");
}
if (button_was_pressed()) {
sprintf(contr.disp_str, "%u", button.push_counter);
disp_string(3, 7, contr.disp_str);
} else {
disp_string(3, 7, " ");
}
//if (button.strokes_ended) {
sprintf(contr.disp_str, "%1u", button.push_counter);
disp_string(3, 5, contr.disp_str);
//}
}
void contr_show_freq(void) {
uint16_t freq = contr_get_freq();
sprintf(contr.disp_str, "%2uM", freq);