[FL-2415] Storage: blocking file open (#1078)
* Storage: correct replacement for "/any" path in path holder * Unit tests: storage, blocking file open test * File stream: error getter * Storage: common copy and common remove now executes in external thread * Filesystems: got rid of unused functions * Storage: untangle dependencies, ram-frendly filesystem api * iButton: context assertions * Storage: pubsub messages * Storage: wait for the file to close if it was open * Storage: fix folder copying * Storage: unit test * Storage: pubsub documentation * Fix merge error * Fix memleak in storage test * Storage: remove unused define Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -63,6 +63,7 @@ void ibutton_cli_print_key_data(iButtonKey* key) {
|
||||
#define EVENT_FLAG_IBUTTON_COMPLETE (1 << 0)
|
||||
|
||||
static void ibutton_cli_worker_read_cb(void* context) {
|
||||
furi_assert(context);
|
||||
osEventFlagsId_t event = context;
|
||||
osEventFlagsSet(event, EVENT_FLAG_IBUTTON_COMPLETE);
|
||||
}
|
||||
@@ -112,6 +113,7 @@ typedef struct {
|
||||
} iButtonWriteContext;
|
||||
|
||||
static void ibutton_cli_worker_write_cb(void* context, iButtonWorkerWriteResult result) {
|
||||
furi_assert(context);
|
||||
iButtonWriteContext* write_context = (iButtonWriteContext*)context;
|
||||
write_context->result = result;
|
||||
osEventFlagsSet(write_context->event, EVENT_FLAG_IBUTTON_COMPLETE);
|
||||
|
||||
Reference in New Issue
Block a user