mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15:26 +03:00
Merge pull request #1728 from iNavFlight/de_nav_time_overflow
Fix incorrect time types
This commit is contained in:
commit
205e8b690c
2 changed files with 5 additions and 5 deletions
|
@ -1242,9 +1242,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) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue