Revert "Revert "MPU Hal (#1492)""

This reverts commit 43345ba0bb.
This commit is contained in:
MX
2022-08-04 05:02:23 +03:00
parent 8f80999589
commit 04ceebc032
29 changed files with 238 additions and 62 deletions

View File

@@ -147,7 +147,7 @@ static void text_input_backspace_cb(TextInputModel* model) {
static void text_input_view_draw_callback(Canvas* canvas, void* _model) {
TextInputModel* model = _model;
uint8_t text_length = strlen(model->text_buffer);
uint8_t text_length = model->text_buffer ? strlen(model->text_buffer) : 0;
uint8_t needed_string_width = canvas_width(canvas) - 8;
uint8_t start_pos = 4;