AP_IOMCU: conform to new time conversion API

This commit is contained in:
Siddharth Purohit 2018-08-29 18:49:48 +05:30 committed by Andrew Tridgell
parent 42b4730d88
commit 605e0de03c
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ void AP_IOMCU_FW::init()
void AP_IOMCU_FW::update()
{
eventmask_t mask = chEvtWaitAnyTimeout(~0, MS2ST(1));
eventmask_t mask = chEvtWaitAnyTimeout(~0, chTimeMS2I(1));
if (do_reboot && (AP_HAL::millis() > reboot_time)) {
hal.scheduler->reboot(true);