Skip to content

Commit 69a2803

Browse files
authored
Merge pull request #12401 from hugueskamba/hk-remove-float-in-ticker
Remove float symbols from apps that use the NFCController class
2 parents bde0f56 + ec2c341 commit 69a2803

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

features/nfc/source/nfc/NFCController.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,12 @@ void NFCController::scheduler_process(bool hw_interrupt)
181181
_timeout.detach(); // Cancel timeout - if it triggers, it's ok as we'll have an "early" iteration which will likely be a no-op
182182

183183
// 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);
185185

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+
);
187190
}
188191

189192
void NFCController::on_hw_interrupt()

0 commit comments

Comments
 (0)