|
|
|
@ -183,7 +183,8 @@ bool mojoKernel::create(){ |
|
|
|
m_bEnableAutoReset = true; |
|
|
|
m_nAutoResetTime = tVal; |
|
|
|
sprintf( tBuffer, "App Autoreset Read From Settings: %d", m_nAutoResetTime ); |
|
|
|
LOG( tBuffer ); |
|
|
|
if ( m_nAutoResetTime == 0 ) m_bEnableAutoReset = false; |
|
|
|
LOG(tBuffer); |
|
|
|
}; |
|
|
|
#endif
|
|
|
|
} else { |
|
|
|
@ -328,6 +329,9 @@ void mojoKernel::startSession(){ |
|
|
|
m_pEventHeap->broadcast( bEVT ); |
|
|
|
}; |
|
|
|
m_bSessionStarted = true; |
|
|
|
#ifdef EMBED_AUTORESET
|
|
|
|
m_nSessionCounter = 0; |
|
|
|
#endif
|
|
|
|
}; |
|
|
|
m_mSessionProtector.unlock(); |
|
|
|
}; |
|
|
|
@ -400,7 +404,6 @@ void mojoKernel::validateSession(){ |
|
|
|
#ifdef EMBED_AUTORESET
|
|
|
|
if ( m_bEnableAutoReset ) { |
|
|
|
if( m_nSessionCounter < m_nAutoResetTime ) { |
|
|
|
//if ( m_nNoAlarmCounter < 5 )
|
|
|
|
m_nSessionCounter ++; |
|
|
|
} else { |
|
|
|
m_nSessionCounter = 0; |
|
|
|
|