Do not use a timer callback

This commit is contained in:
Georgii Surkov
2024-02-09 16:31:45 +03:00
parent 4c2e997997
commit 73deff8863
2 changed files with 6 additions and 17 deletions

View File

@@ -57,7 +57,7 @@ static void expansion_detect_callback(void* context) {
ExpansionMessage message = {
.type = ExpansionMessageTypeModuleConnected,
.api_lock = NULL, // Not locking the API here
.api_lock = NULL, // Not locking the API here to avoid a deadlock
};
// Not waiting for available queue space, discarding message if there is none
@@ -71,7 +71,7 @@ static void expansion_worker_callback(void* context) {
ExpansionMessage message = {
.type = ExpansionMessageTypeModuleDisconnected,
.api_lock = NULL, // Not locking the API here
.api_lock = NULL, // Not locking the API here to avoid a deadlock
};
const FuriStatus status = furi_message_queue_put(instance->queue, &message, FuriWaitForever);