|
|
@@ -1200,8 +1200,11 @@ int32_t nrf24scan_app(void* p) {
|
|
|
if(what_doing == 0) {
|
|
|
if(menu_selected < menu_selected_max) menu_selected++; else menu_selected = 0;
|
|
|
} else if(what_doing == 1) {
|
|
|
- view_log_arr_idx += event.input.type == InputTypeRepeat ? 10 : 1;
|
|
|
- if(view_log_arr_idx >= log_arr_idx) view_log_arr_idx = log_arr_idx - 1;
|
|
|
+ if(log_arr_idx == 0) view_log_arr_idx = 0;
|
|
|
+ else {
|
|
|
+ view_log_arr_idx += event.input.type == InputTypeRepeat ? 10 : 1;
|
|
|
+ if(view_log_arr_idx >= log_arr_idx) view_log_arr_idx = log_arr_idx - 1;
|
|
|
+ }
|
|
|
} else if(what_doing == 2) {
|
|
|
if(view_found < found_total / 7) view_found++;
|
|
|
}
|