mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix unitemp save (you don't save in GUI thread 🤡)
This commit is contained in:
2
applications/external/unitemp/Sensors.c
vendored
2
applications/external/unitemp/Sensors.c
vendored
@@ -397,6 +397,8 @@ bool unitemp_sensors_save(void) {
|
||||
FuriString* filepath = furi_string_alloc();
|
||||
//Составление пути к файлу
|
||||
furi_string_printf(filepath, "%s/%s", APP_PATH_FOLDER, APP_FILENAME_SENSORS);
|
||||
//Создание папки плагина
|
||||
storage_common_mkdir(app->storage, APP_PATH_FOLDER);
|
||||
//Открытие потока
|
||||
if(!file_stream_open(
|
||||
app->file_stream, furi_string_get_cstr(filepath), FSAM_READ_WRITE, FSOM_CREATE_ALWAYS)) {
|
||||
|
||||
2
applications/external/unitemp/unitemp.c
vendored
2
applications/external/unitemp/unitemp.c
vendored
@@ -74,6 +74,8 @@ bool unitemp_saveSettings(void) {
|
||||
FuriString* filepath = furi_string_alloc();
|
||||
//Составление пути к файлу
|
||||
furi_string_printf(filepath, "%s/%s", APP_PATH_FOLDER, APP_FILENAME_SETTINGS);
|
||||
//Создание папки плагина
|
||||
storage_common_mkdir(app->storage, APP_PATH_FOLDER);
|
||||
//Открытие потока
|
||||
if(!file_stream_open(
|
||||
app->file_stream, furi_string_get_cstr(filepath), FSAM_READ_WRITE, FSOM_CREATE_ALWAYS)) {
|
||||
|
||||
2
applications/external/unitemp/unitemp.h
vendored
2
applications/external/unitemp/unitemp.h
vendored
@@ -42,7 +42,7 @@
|
||||
//Версия приложения
|
||||
#define UNITEMP_APP_VER "1.4"
|
||||
//Путь хранения файлов плагина
|
||||
#define APP_PATH_FOLDER STORAGE_APP_DATA_PATH_PREFIX
|
||||
#define APP_PATH_FOLDER EXT_PATH("apps_data/unitemp")
|
||||
//Имя файла с настройками
|
||||
#define APP_FILENAME_SETTINGS "settings.cfg"
|
||||
//Имя файла с датчиками
|
||||
|
||||
Reference in New Issue
Block a user