Skip to content

Commit

Permalink
upd spimem
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Sep 10, 2024
1 parent 9ec1f5b commit 75cad48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion base_pack/spi_mem_manager/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ App(
requires=["gui"],
stack_size=1 * 2048,
fap_description="Application for reading and writing 25-series SPI memory chips",
fap_version="1.3",
fap_version="1.4",
fap_icon="images/Dip8_10px.png",
fap_category="GPIO",
fap_icon_assets="images",
Expand Down
10 changes: 5 additions & 5 deletions base_pack/spi_mem_manager/scenes/spi_mem_scene_about.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include "../spi_mem_app_i.h"
#include "../lib/spi/spi_mem_chip.h"

#define SPI_MEM_VERSION_APP "0.1.0"
#define SPI_MEM_DEVELOPER "DrunkBatya"
#define SPI_MEM_GITHUB "https://github.com/flipperdevices/flipperzero-good-faps"
#define SPI_MEM_NAME "\e#\e! SPI Mem Manager \e!\n"
#define SPI_MEM_BLANK_INV "\e#\e! \e!\n"
#define SPI_MEM_VERSION_APP FAP_VERSION
#define SPI_MEM_DEVELOPER "DrunkBatya"
#define SPI_MEM_GITHUB "https://github.com/flipperdevices/flipperzero-good-faps"
#define SPI_MEM_NAME "\e#\e! SPI Mem Manager \e!\n"
#define SPI_MEM_BLANK_INV "\e#\e! \e!\n"

void spi_mem_scene_about_on_enter(void* context) {
SPIMemApp* app = context;
Expand Down
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 75cad48

Please sign in to comment.