AP_IOMCU: move to using updated time conv API

This commit is contained in:
Siddharth Purohit 2018-06-02 21:29:33 +05:30 committed by Andrew Tridgell
parent ff65487ab3
commit 9f5dbb74e7

View File

@ -164,7 +164,7 @@ void AP_IOMCU::thread_main(void)
trigger_event(IOEVENT_INIT);
while (true) {
eventmask_t mask = chEvtWaitAnyTimeout(~0, MS2ST(10));
eventmask_t mask = chEvtWaitAnyTimeout(~0, chTimeMS2I(10));
// check for pending IO events
if (mask & EVENT_MASK(IOEVENT_SEND_PWM_OUT)) {