Skip to content

Commit

Permalink
Fix incorrect line breaks in SPI Memory Manager (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
portasynthinca3 authored Sep 10, 2024
1 parent e34e8a7 commit b791dea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions spi_mem_manager/.catalog/changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions spi_mem_manager/scenes/spi_mem_scene_chip_detect_fail.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b791dea

Please sign in to comment.