File worker helper. Slightly optimized iButton app code size. (#545)

* File worker: file operations helper
* Notification app: removed yield
* File worker: write operations, calls to system file widgets
* App ibutton: use file worker
* App ibutton: small save fix, forgotten byte
This commit is contained in:
SG
2021-06-29 23:08:45 +10:00
committed by GitHub
parent 22e1ecb642
commit dce3665f63
5 changed files with 357 additions and 137 deletions

View File

@@ -90,8 +90,6 @@ public:
char* get_text_store();
uint8_t get_text_store_size();
SdCard_Api* get_sd_ex_api();
FS_Api* get_fs_api();
char* get_file_name();
uint8_t get_file_name_size();
@@ -132,8 +130,6 @@ private:
iButtonKey key;
RecordController<FS_Api> fs_api;
RecordController<SdCard_Api> sd_ex_api;
RecordController<NotificationApp> notification;
static const uint8_t file_name_size = 100;
@@ -145,6 +141,5 @@ private:
static const char* app_folder;
static const char* app_extension;
void show_file_error_message(const char* error_text);
bool load_key_data(string_t key_path);
};