// 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;
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;
xQueueSend(check_queue, &io_num, portMAX_DELAY);
}
break;
+#endif
default:
printf("Unable to set motion pins!\n");
}