1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

More fixes to time types

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2017-01-15 19:24:35 +10:00
parent e7dd693dd5
commit adaef0da5a
28 changed files with 99 additions and 95 deletions

View file

@ -69,15 +69,15 @@ void warningLedRefresh(void)
break;
}
uint32_t now = micros();
timeUs_t now = micros();
warningLedTimer = now + 500000;
}
void warningLedUpdate(void)
{
uint32_t now = micros();
timeUs_t now = micros();
if ((int32_t)(now - warningLedTimer) < 0) {
if ((timeDelta_t)(now - warningLedTimer) < 0) {
return;
}