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