From 11f442253f8b1315fd9ed04e24855e4e49b9ffa6 Mon Sep 17 00:00:00 2001 From: jweigele Date: Tue, 26 Mar 2024 12:41:11 -0700 Subject: [PATCH] fix slight bug in non-defined options --- aqi/main/aqi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqi/main/aqi.c b/aqi/main/aqi.c index 0acaad1..e2873db 100644 --- a/aqi/main/aqi.c +++ b/aqi/main/aqi.c @@ -1389,6 +1389,7 @@ static void motion_task(void* discard){ // block, but probably better than dropping events on the floor?? really don't want to be in that situation // to begin with switch (io_num) { +#ifdef CONFIG_MOTION_FIRST_PIN case CONFIG_MOTION_FIRST_PIN: prev_motion[0] = motion_pins[0]; motion_pins[0] = pin_value; @@ -1396,6 +1397,8 @@ static void motion_task(void* discard){ xQueueSend(check_queue, &io_num, portMAX_DELAY); } break; +#endif +#ifdef CONFIG_MOTION_SECOND_PIN case CONFIG_MOTION_SECOND_PIN: prev_motion[1] = motion_pins[1]; motion_pins[1] = pin_value; @@ -1403,6 +1406,7 @@ static void motion_task(void* discard){ xQueueSend(check_queue, &io_num, portMAX_DELAY); } break; +#endif default: printf("Unable to set motion pins!\n"); } -- 2.30.2