step 3 end cycle early
This commit is contained in:
parent
df174d7d18
commit
7e036417ae
@ -603,14 +603,18 @@ void step3(void) {
|
||||
}
|
||||
}
|
||||
|
||||
// bool success = false;
|
||||
// for (int i = 0; i < sizeof(buttons_cycling); i++) {
|
||||
// if ((buttons_cycling[i] == true) || (button_turned_on == false && led_off != -1)) {
|
||||
// strike("Ran out of time!");
|
||||
// success = false;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
bool success = true;
|
||||
for (int i = 0; i < sizeof(buttons_cycling); i++) {
|
||||
if ((buttons_cycling[i] == true) || (button_turned_on == false && led_off != -1)) {
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (success) {
|
||||
solved_puzzles++;
|
||||
solved_correctly = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ((xTaskGetTickCount() - lastCycleTime) >= pdMS_TO_TICKS(500)) {
|
||||
ESP_LOGI(TAG, "Cycling LEDs");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user