not start worker if err
This commit is contained in:
parent
fa2f071ed1
commit
a1780154df
@ -187,10 +187,12 @@ void nfc_test_callback(void* context) {
|
|||||||
Nfc* nfc = context;
|
Nfc* nfc = context;
|
||||||
|
|
||||||
dispatcher_lock(nfc->dispatcher);
|
dispatcher_lock(nfc->dispatcher);
|
||||||
|
|
||||||
|
nfc->screen = 0;
|
||||||
|
widget_enabled_set(nfc->widget, true);
|
||||||
|
|
||||||
if(!nfc->worker) {
|
if(nfc->ret == ERR_NONE && !nfc->worker) {
|
||||||
nfc->screen = 0;
|
// TODO change to fuirac_start
|
||||||
widget_enabled_set(nfc->widget, true);
|
|
||||||
nfc->worker = osThreadNew(nfc_worker_task, nfc, &nfc->worker_attr);
|
nfc->worker = osThreadNew(nfc_worker_task, nfc, &nfc->worker_attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user