release: fix impossible condition
This commit is contained in:
parent
f75fa4207e
commit
24bba6bde0
@ -214,7 +214,7 @@ static void prvTask3( void * pvParameters ) {
|
|||||||
xSemaphoreTake(xMutex, portMAX_DELAY); // wost time: right after T2 locks the mutex
|
xSemaphoreTake(xMutex, portMAX_DELAY); // wost time: right after T2 locks the mutex
|
||||||
volatile uint16_t x = INPUT_SHORT_NEXT;
|
volatile uint16_t x = INPUT_SHORT_NEXT;
|
||||||
int torun = 0;
|
int torun = 0;
|
||||||
if ((int)y>=0) {
|
if ((int)y!=0) {
|
||||||
torun = CLAMP(x, 0, 5000);
|
torun = CLAMP(x, 0, 5000);
|
||||||
} else {
|
} else {
|
||||||
torun = CLAMP(x, 1000, 4000);
|
torun = CLAMP(x, 1000, 4000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user