Merge branch 'main' into fix/timer-delete-completion-callback

This commit is contained in:
Roger 2026-08-30 17:03:03 +08:00 • committed by GitHub
commit 78455b3f32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 1976 additions and 838 deletions

View file

@ -468,9 +468,11 @@
xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
xMessage.u.xTimerParameters.pxTimer = xTimer;
configASSERT( xCommandID < tmrFIRST_FROM_ISR_COMMAND );
/* Enforce a lower bound as well as an upper bound so that only
* valid task-issued commands are accepted here. */
configASSERT( ( xCommandID >= tmrCOMMAND_START_DONT_TRACE ) && ( xCommandID < tmrFIRST_FROM_ISR_COMMAND ) );
if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
if( ( xCommandID >= tmrCOMMAND_START_DONT_TRACE ) && ( xCommandID < tmrFIRST_FROM_ISR_COMMAND ) )
{
if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
{