update
This commit is contained in:
15
contr.c
15
contr.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user