File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
api_drivers/common_api_drivers/frozen/other Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 66from machine import Timer # NOQA
77
88
9- TASK_HANDLER_STARTED = 0x00
10- TASK_HANDLER_FINISHED = 0x01
9+ TASK_HANDLER_STARTED = 0x01
10+ TASK_HANDLER_FINISHED = 0x02
1111
1212_default_timer_id = 0
1313
@@ -106,7 +106,7 @@ def _task_handler(self, _):
106106
107107 run_update = True
108108 for cb , evt , data in self ._callbacks :
109- if not evt ^ TASK_HANDLER_STARTED :
109+ if not evt & TASK_HANDLER_STARTED :
110110 continue
111111
112112 try :
@@ -133,7 +133,7 @@ def _task_handler(self, _):
133133 start_time = time .ticks_ms ()
134134
135135 for cb , evt , data in self ._callbacks :
136- if not evt ^ TASK_HANDLER_FINISHED :
136+ if not evt & TASK_HANDLER_FINISHED :
137137 continue
138138
139139 try :
You can’t perform that action at this time.
0 commit comments