From 24bba6bde09c45f037c72e8804d5f6867b8d0531 Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Thu, 7 Aug 2025 11:59:16 +0000 Subject: [PATCH] release: fix impossible condition --- FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c index 6a9eabba..5ff70b2a 100644 --- a/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c +++ b/FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC/main_release.c @@ -214,7 +214,7 @@ static void prvTask3( void * pvParameters ) { xSemaphoreTake(xMutex, portMAX_DELAY); // wost time: right after T2 locks the mutex volatile uint16_t x = INPUT_SHORT_NEXT; int torun = 0; - if ((int)y>=0) { + if ((int)y!=0) { torun = CLAMP(x, 0, 5000); } else { torun = CLAMP(x, 1000, 4000);