mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-24 05:34:45 -07:00
BLE/GAP fixes
by hedger https://github.com/flipperdevices/flipperzero-firmware/pull/3533/files
This commit is contained in:
@@ -50,14 +50,14 @@ BleEventFlowStatus ble_event_dispatcher_process_event(void* payload) {
|
||||
}
|
||||
|
||||
void ble_event_dispatcher_init(void) {
|
||||
furi_assert(!initialized);
|
||||
|
||||
GapSvcEventHandlerList_init(handlers);
|
||||
initialized = true;
|
||||
if(!initialized) {
|
||||
GapSvcEventHandlerList_init(handlers);
|
||||
initialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
void ble_event_dispatcher_reset(void) {
|
||||
furi_assert(initialized);
|
||||
furi_check(initialized);
|
||||
furi_check(GapSvcEventHandlerList_size(handlers) == 0);
|
||||
|
||||
GapSvcEventHandlerList_clear(handlers);
|
||||
|
||||
Reference in New Issue
Block a user