Temporarily backport app updates from apps repo

This commit is contained in:
Willy-JL
2023-11-12 11:06:02 +00:00
parent 79e7f491fe
commit e309fa8a88
1498 changed files with 1325977 additions and 20227 deletions

View File

@@ -1,16 +1,18 @@
App(
appid="gpio_timelapse",
appid="timelapse",
name="[GPIO] Timelapse",
apptype=FlipperAppType.EXTERNAL,
entry_point="zeitraffer_app",
cdefines=["APP_ZEITRAFFER"],
requires=["gui", "input", "notification", "gpio"],
stack_size=2 * 1024,
order=90,
fap_version="1.1",
fap_icon_assets="icons",
fap_icon_assets_symbol="zeitraffer",
fap_icon="zeitraffer.png",
fap_category="GPIO",
fap_version="1.1",
fap_description="Simple intervalometer app, works via GPIO pins.",
fap_description="Simple intervalometer/timelapse app",
fap_author="Aurelius Rosenbaum",
fap_weburl="https://github.com/theageoflove/flipperzero-zeitraffer",
)

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 1.4 KiB