Skip to content

Commit f702b89

Browse files
author
camilo
committed
fix to qStateMachine_TimeoutSet"
1 parent 95f8ff1 commit f702b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qfsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ qBool_t qStateMachine_TimeoutSet( qSM_t * const m,
831831
{
832832
qBool_t retValue = qFalse;
833833

834-
if ( ( NULL != m ) && ( xTimeout <= (qIndex_t)Q_FSM_MAX_TIMEOUTS ) ) {
834+
if ( ( NULL != m ) && ( xTimeout < (qIndex_t)Q_FSM_MAX_TIMEOUTS ) ) {
835835
if ( NULL != m->qPrivate.timeSpec ) {
836836
retValue = qSTimer_Set( &m->qPrivate.timeSpec->builtin_timeout[ xTimeout ], t );
837837
}

0 commit comments

Comments
 (0)