Преглед изворни кода

Fix incorrect line breaks in SPI Memory Manager (#241)

porta пре 1 година
родитељ
комит
47b437d0c3
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 0
      .catalog/changelog.md
  2. 2 2
      scenes/spi_mem_scene_chip_detect_fail.c

+ 1 - 0
.catalog/changelog.md

@@ -1,4 +1,5 @@
 ## 1.4
 ## 1.4
+ - Fixed UI rendering bug related to line breaks
  - Removed call to legacy SDK API
  - Removed call to legacy SDK API
 ## 1.3
 ## 1.3
    XM25QH64C and XM25QH128A flash chip support added
    XM25QH64C and XM25QH128A flash chip support added

+ 2 - 2
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");
         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));
     furi_string_printf(str, "Vendor\nid: 0x%02X", spi_mem_chip_get_vendor_id(app->chip_info));
     widget_add_string_multiline_element(
     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));
     furi_string_printf(str, "Type\nid: 0x%02X", spi_mem_chip_get_type_id(app->chip_info));
     widget_add_string_multiline_element(
     widget_add_string_multiline_element(
         app->widget, 64, 44, AlignCenter, AlignBottom, FontSecondary, furi_string_get_cstr(str));
         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));
     furi_string_printf(str, "Capacity\nid: 0x%02X", spi_mem_chip_get_capacity_id(app->chip_info));
     widget_add_string_multiline_element(
     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);
     furi_string_free(str);
     view_dispatcher_switch_to_view(app->view_dispatcher, SPIMemViewWidget);
     view_dispatcher_switch_to_view(app->view_dispatcher, SPIMemViewWidget);
 }
 }