File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,12 @@ void NFCController::scheduler_process(bool hw_interrupt)
181
181
_timeout.detach (); // Cancel timeout - if it triggers, it's ok as we'll have an "early" iteration which will likely be a no-op
182
182
183
183
// Process stack events
184
- uint32_t timeout = nfc_scheduler_iteration (_scheduler, hw_interrupt ? EVENT_HW_INTERRUPT : EVENT_NONE);
184
+ uint32_t timeout_ms = nfc_scheduler_iteration (_scheduler, hw_interrupt ? EVENT_HW_INTERRUPT : EVENT_NONE);
185
185
186
- _timeout.attach (callback (this , &NFCController::on_timeout), timeout);
186
+ _timeout.attach_us (
187
+ callback (this , &NFCController::on_timeout),
188
+ timeout_ms * (us_timestamp_t ) 1000
189
+ );
187
190
}
188
191
189
192
void NFCController::on_hw_interrupt ()
You can’t perform that action at this time.
0 commit comments