diff options
| author | jbruneaux31 <[email protected]> | 2022-12-19 13:58:54 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-19 13:58:54 +0100 |
| commit | a46ad8fcdfef8c742933843b9c237778fc5ea0a0 (patch) | |
| tree | d70d20bccda3687d86d87a08df69b1c87bbb6342 /src/osal | |
| parent | 159aa599be42534cd9a37ae03c71c228c3e72e90 (diff) | |
Update osal_freertos.h
Fix FreeRTOS task switch even if not required (unitialized variable usage)
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal_freertos.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osal/osal_freertos.h b/src/osal/osal_freertos.h index 327aa9970..9393d1f26 100644 --- a/src/osal/osal_freertos.h +++ b/src/osal/osal_freertos.h @@ -115,7 +115,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_post(osal_semaphore_t se } else { - BaseType_t xHigherPriorityTaskWoken; + BaseType_t xHigherPriorityTaskWoken = pdFALSE; BaseType_t res = xSemaphoreGiveFromISR(sem_hdl, &xHigherPriorityTaskWoken); #if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3 @@ -189,7 +189,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void } else { - BaseType_t xHigherPriorityTaskWoken; + BaseType_t xHigherPriorityTaskWoken = pdFALSE; BaseType_t res = xQueueSendToBackFromISR(qhdl, data, &xHigherPriorityTaskWoken); #if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3 |
