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,7 +261,23 @@ bool TimerHandler1(struct repeating_timer *t) {
if (wifi)
check_for_browser();
return(true);
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);
}
void read_reset_count() {

Loading…
Cancel
Save

Powered by TurnKey Linux.