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

@ -260,8 +260,24 @@ 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
return(true); blink(50);
char result = Serial1.read();
Serial.println(result);
if (result == 'R') {
// reset payload
}
if (result == '?')
{
// display payload string
}
}
return(true);
} }
void read_reset_count() { void read_reset_count() {

Loading…
Cancel
Save

Powered by TurnKey Linux.