step 3 end cycle early

This commit is contained in:
Drake Marino 2024-08-11 20:40:38 -05:00
parent df174d7d18
commit 7e036417ae

View File

@ -603,14 +603,18 @@ void step3(void) {
} }
} }
// bool success = false; bool success = true;
// for (int i = 0; i < sizeof(buttons_cycling); i++) { for (int i = 0; i < sizeof(buttons_cycling); i++) {
// if ((buttons_cycling[i] == true) || (button_turned_on == false && led_off != -1)) { if ((buttons_cycling[i] == true) || (button_turned_on == false && led_off != -1)) {
// strike("Ran out of time!"); success = false;
// success = false; break;
// break; }
// } }
// } if (success) {
solved_puzzles++;
solved_correctly = true;
break;
}
} }
if ((xTaskGetTickCount() - lastCycleTime) >= pdMS_TO_TICKS(500)) { if ((xTaskGetTickCount() - lastCycleTime) >= pdMS_TO_TICKS(500)) {
ESP_LOGI(TAG, "Cycling LEDs"); ESP_LOGI(TAG, "Cycling LEDs");