[FL-2528] Fix iButton crash on successful emulation #1220

This commit is contained in:
Georgii Surkov
2022-05-11 18:47:01 +03:00
committed by GitHub
parent 9a11d3996d
commit 85a129b89f
3 changed files with 13 additions and 3 deletions

View File

@@ -184,9 +184,7 @@ void ibutton_worker_mode_read_stop(iButtonWorker* worker) {
static void onewire_slave_callback(void* context) {
furi_assert(context);
iButtonWorker* worker = context;
if(worker->emulate_cb != NULL) {
worker->emulate_cb(worker->cb_ctx, true);
}
ibutton_worker_notify_emulate(worker);
}
void ibutton_worker_emulate_dallas_start(iButtonWorker* worker) {