Update apps

This commit is contained in:
Willy-JL
2023-07-14 02:43:32 +02:00
parent 1243b192be
commit a33a461074
65 changed files with 696 additions and 169 deletions

View File

@@ -5,10 +5,11 @@
#include <notification/notification_messages.h>
#include <flipper_format/flipper_format.h>
#include "gpio_item.h"
#include "timelapse_icons.h"
#include "gpio_timelapse_icons.h"
#include <assets_icons.h>
#define CONFIG_FILE_PATH APP_DATA_PATH("timelapse.conf")
#define CONFIG_FILE_DIRECTORY_PATH "/ext/apps_data/timelapse"
#define CONFIG_FILE_PATH CONFIG_FILE_DIRECTORY_PATH "/timelapse.conf"
// Часть кода покрадена из https://github.com/zmactep/flipperzero-hello-world
@@ -153,6 +154,10 @@ 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;