1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 04:41:26 +04:00

Lib: update m-lib to latest release. Update m-lib usage across project. (#818)

This commit is contained in:
あく
2021-11-15 20:09:40 +03:00
committed by GitHub
parent b2356c7318
commit 2e46ec36a7
25 changed files with 45 additions and 45 deletions

View File

@@ -139,8 +139,8 @@ void button_panel_clean(ButtonPanel* button_panel) {
}
model->reserve_x = 0;
model->reserve_y = 0;
LabelList_clean(model->labels);
ButtonMatrix_clean(model->button_matrix);
LabelList_reset(model->labels);
ButtonMatrix_reset(model->button_matrix);
return true;
});
}
@@ -150,8 +150,8 @@ static ButtonItem** button_panel_get_item(ButtonPanelModel* model, size_t x, siz
furi_check(x < model->reserve_x);
furi_check(y < model->reserve_y);
ButtonArray_t* button_array = ButtonMatrix_get_at(model->button_matrix, x);
ButtonItem** button_item = ButtonArray_get_at(*button_array, y);
ButtonArray_t* button_array = ButtonMatrix_safe_get(model->button_matrix, x);
ButtonItem** button_item = ButtonArray_safe_get(*button_array, y);
return button_item;
}