Skip to content

Commit

Permalink
fixes for latest api
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Mar 25, 2024
1 parent 30309ab commit 86596b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion non_catalog_apps/wiegand/scenes/wiegand_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void wiegand_data_scene_on_enter(void* context) {
App* app = context;
widget_reset(app->widget);
widget_add_string_element(app->widget, 0, 0, AlignLeft, AlignTop, FontPrimary, "Wiegand Data");
FuriString* buffer = furi_string_alloc(1024);
FuriString* buffer = furi_string_alloc();
furi_string_printf(buffer, "Bits: %d\n", bit_count);
for(int i = 0; i < bit_count; i++) {
furi_string_push_back(buffer, data[i] ? '1' : '0');
Expand Down
2 changes: 1 addition & 1 deletion non_catalog_apps/wiegand/scenes/wiegand_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void wiegand_load_scene_on_enter(void* context) {

furi_string_set(app->file_path, browser_options.base_path);

FuriString* buffer = furi_string_alloc(1024);
FuriString* buffer = furi_string_alloc();

if(dialog_file_browser_show(app->dialogs, app->file_path, app->file_path, &browser_options)) {
Storage* storage = furi_record_open(RECORD_STORAGE);
Expand Down
2 changes: 1 addition & 1 deletion non_catalog_apps/wiegand/scenes/wiegand_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void ensure_dir_exists(Storage* storage) {

void wiegand_save(void* context) {
App* app = context;
FuriString* buffer = furi_string_alloc(1024);
FuriString* buffer = furi_string_alloc();
FuriString* file_path = furi_string_alloc();
furi_string_printf(
file_path, "%s/%s%s", WIEGAND_SAVE_FOLDER, app->file_name, WIEGAND_SAVE_EXTENSION);
Expand Down

0 comments on commit 86596b3

Please sign in to comment.