mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 13:48:35 -07:00
Update apps
This commit is contained in:
2
applications/external/ifttt/application.fam
vendored
2
applications/external/ifttt/application.fam
vendored
@@ -1,5 +1,5 @@
|
||||
App(
|
||||
appid="ifttt",
|
||||
appid="esp8266_ifttt_virtual_button",
|
||||
name="[ESP8266] IFTTT Button",
|
||||
apptype=FlipperAppType.EXTERNAL,
|
||||
entry_point="ifttt_virtual_button_app",
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include "ifttt_virtual_button.h"
|
||||
|
||||
#define IFTTT_CONFIG_FOLDER APP_DATA_PATH("config")
|
||||
const char* CONFIG_FILE_PATH = APP_DATA_PATH("config/config.settings");
|
||||
#define IFTTT_FOLDER "/ext/apps_data/ifttt"
|
||||
#define IFTTT_CONFIG_FOLDER "/ext/apps_data/ifttt/config"
|
||||
const char* CONFIG_FILE_PATH = "/ext/apps_data/ifttt/config/config.settings";
|
||||
|
||||
#define FLIPPERZERO_SERIAL_BAUD 115200
|
||||
typedef enum ESerialCommand { ESerialCommand_Config } ESerialCommand;
|
||||
@@ -218,7 +219,10 @@ int32_t ifttt_virtual_button_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
Storage* storage = furi_record_open(RECORD_STORAGE);
|
||||
storage_simply_mkdir(storage, IFTTT_CONFIG_FOLDER);
|
||||
if(!storage_simply_mkdir(storage, IFTTT_FOLDER)) {
|
||||
}
|
||||
if(!storage_simply_mkdir(storage, IFTTT_CONFIG_FOLDER)) {
|
||||
}
|
||||
furi_record_close(RECORD_STORAGE);
|
||||
|
||||
uint32_t first_scene = VirtualButtonAppSceneStart;
|
||||
|
||||
@@ -134,4 +134,4 @@ void send_view_set_data(SendView* send_view, bool connected) {
|
||||
furi_assert(send_view);
|
||||
with_view_model(
|
||||
send_view->view, SendViewModel * model, { model->connected = connected; }, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user