added serial.read in TimerHandler1

pull/177/head
alanbjohnston 3 years ago committed by GitHub
parent 0f559e6167
commit 0f28427e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -261,6 +261,22 @@ bool TimerHandler1(struct repeating_timer *t) {
if (wifi) if (wifi)
check_for_browser(); check_for_browser();
if (Serial.available() > 0) { // check for user input on serial port
blink(50);
char result = Serial1.read();
Serial.println(result);
if (result == 'R') {
// reset payload
}
if (result == '?')
{
// display payload string
}
}
return(true); return(true);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.