release: fix impossible condition

This commit is contained in:
Alwin Berger 2025-08-07 11:59:16 +00:00
parent f75fa4207e
commit 24bba6bde0

View File

@ -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);