Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Move config to apps_data
Browse files Browse the repository at this point in the history
  • Loading branch information
theageoflove committed Mar 16, 2023
1 parent da56066 commit 89b0c23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zeitraffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "gpio_item.h"
#include "zeitraffer_icons.h"

#define CONFIG_FILE_DIRECTORY_PATH "/ext/apps/Misc"
#define CONFIG_FILE_DIRECTORY_PATH "/ext/apps_data/zeitraffer"
#define CONFIG_FILE_PATH CONFIG_FILE_DIRECTORY_PATH "/zeitraffer.conf"

// Часть кода покрадена из https://github.com/zmactep/flipperzero-hello-world
Expand Down Expand Up @@ -157,7 +157,7 @@ int32_t zeitraffer_app(void* p) {
FlipperFormat* load = flipper_format_file_alloc(storage);

do {

if(!storage_simply_mkdir(storage, CONFIG_FILE_DIRECTORY_PATH)) {notification_message(notifications, &sequence_error); break;}
if(!flipper_format_file_open_existing(load, CONFIG_FILE_PATH)) {notification_message(notifications, &sequence_error); break;}
if(!flipper_format_read_int32(load, "Time", &Time, 1)) {notification_message(notifications, &sequence_error); break;}
if(!flipper_format_read_int32(load, "Count", &Count, 1)) {notification_message(notifications, &sequence_error); break;}
Expand Down

0 comments on commit 89b0c23

Please sign in to comment.