AP_HAL_ChibiOS: Changing the timeout detection

This commit is contained in:
murata 2020-04-14 00:32:58 +09:00 committed by Andrew Tridgell
parent 10b7988092
commit 124d8c7fdf

View File

@ -342,7 +342,7 @@ bool Storage::_flash_erase_ok(void)
bool Storage::healthy(void)
{
return ((_initialisedType != StorageBackend::None) &&
(AP_HAL::millis() - (_last_empty_ms < 2000)));
(AP_HAL::millis() - _last_empty_ms < 2000u));
}
/*