1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 00:05:28 +03:00

Fix incorrect time types

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2017-05-26 18:26:43 +10:00
parent 409ba6cc7e
commit fc7c073b79
2 changed files with 5 additions and 5 deletions

View file

@ -1241,9 +1241,9 @@ static navigationFSMState_t navSetNewFSMState(navigationFSMState_t newState)
static void navProcessFSMEvents(navigationFSMEvent_t injectedEvent)
{
const uint32_t currentMillis = millis();
const timeMs_t currentMillis = millis();
navigationFSMState_t previousState;
static uint32_t lastStateProcessTime = 0;
static timeMs_t lastStateProcessTime = 0;
/* If timeout event defined and timeout reached - switch state */
if ((navFSM[posControl.navState].timeoutMs > 0) && (navFSM[posControl.navState].onEvent[NAV_FSM_EVENT_TIMEOUT] != NAV_STATE_UNDEFINED) &&