fix i2c tools menu bug

This commit is contained in:
MX 2022-10-29 03:36:18 +03:00
parent 0dff574757
commit 4e66d37ac8
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5

View file

@ -105,7 +105,7 @@ int32_t i2ctools_app(void* p) {
}
} else if(event.key == InputKeyDown && event.type == InputTypeRelease) {
if(i2ctools->main_view->current_view == MAIN_VIEW) {
if(i2ctools->main_view->menu_index < MENU_SIZE) {
if(i2ctools->main_view->menu_index < 3) {
i2ctools->main_view->menu_index++;
}
} else if(i2ctools->main_view->current_view == SCAN_VIEW) {