changed serial

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent bd1b577720
commit 85bb0a1040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -215,7 +215,7 @@ void loop() {
bool take_photo = false;
Serial.println("Checking for serial input before sleeping");
unsigned long timer_ms = millis();
while ((Serial.available() < 0) && !timeout) {
while ((Serial.available() =< 0) && !timeout) {
if ((millis() - timer_ms) > 10000) timeout = true; // poll serial for 10 seconds
}
if (Serial.available() > 0) {

Loading…
Cancel
Save

Powered by TurnKey Linux.