From b791dea234f855155027bb46215dc60f3ddeb243 Mon Sep 17 00:00:00 2001 From: porta Date: Tue, 10 Sep 2024 17:27:32 +0300 Subject: [PATCH] Fix incorrect line breaks in SPI Memory Manager (#241) --- spi_mem_manager/.catalog/changelog.md | 1 + spi_mem_manager/scenes/spi_mem_scene_chip_detect_fail.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spi_mem_manager/.catalog/changelog.md b/spi_mem_manager/.catalog/changelog.md index 60841ec1907..e5b8d2a458d 100644 --- a/spi_mem_manager/.catalog/changelog.md +++ b/spi_mem_manager/.catalog/changelog.md @@ -1,4 +1,5 @@ ## 1.4 + - Fixed UI rendering bug related to line breaks - Removed call to legacy SDK API ## 1.3 XM25QH64C and XM25QH128A flash chip support added diff --git a/spi_mem_manager/scenes/spi_mem_scene_chip_detect_fail.c b/spi_mem_manager/scenes/spi_mem_scene_chip_detect_fail.c index 876a287212a..8977ba74ece 100644 --- a/spi_mem_manager/scenes/spi_mem_scene_chip_detect_fail.c +++ b/spi_mem_manager/scenes/spi_mem_scene_chip_detect_fail.c @@ -26,13 +26,13 @@ void spi_mem_scene_chip_detect_fail_on_enter(void* context) { app->widget, 64, 20, AlignCenter, AlignBottom, FontPrimary, "unknown SPI chip"); furi_string_printf(str, "Vendor\nid: 0x%02X", spi_mem_chip_get_vendor_id(app->chip_info)); widget_add_string_multiline_element( - app->widget, 16, 44, AlignCenter, AlignBottom, FontSecondary, furi_string_get_cstr(str)); + app->widget, 18, 44, AlignCenter, AlignBottom, FontSecondary, furi_string_get_cstr(str)); furi_string_printf(str, "Type\nid: 0x%02X", spi_mem_chip_get_type_id(app->chip_info)); widget_add_string_multiline_element( app->widget, 64, 44, AlignCenter, AlignBottom, FontSecondary, furi_string_get_cstr(str)); furi_string_printf(str, "Capacity\nid: 0x%02X", spi_mem_chip_get_capacity_id(app->chip_info)); widget_add_string_multiline_element( - app->widget, 110, 44, AlignCenter, AlignBottom, FontSecondary, furi_string_get_cstr(str)); + app->widget, 108, 44, AlignCenter, AlignBottom, FontSecondary, furi_string_get_cstr(str)); furi_string_free(str); view_dispatcher_switch_to_view(app->view_dispatcher, SPIMemViewWidget); }