Screen on turns back on from keyboard input now instead of any new message
This commit is contained in:
parent
5df11770d6
commit
0049a84580
@ -445,15 +445,10 @@ void handleIRC() {
|
||||
sendIRC(pingResponse);
|
||||
} else {
|
||||
parseAndDisplay(line);
|
||||
lastActivityTime = millis(); // Reset activity timer
|
||||
if (!screenOn) {
|
||||
turnOnScreen(); // Turn on screen and backlight
|
||||
lastActivityTime = millis();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void parseAndDisplay(String line) {
|
||||
int firstSpace = line.indexOf(' ');
|
||||
@ -534,6 +529,7 @@ void handleKeyboardInput(char key) {
|
||||
|
||||
|
||||
|
||||
|
||||
void sendRawCommand(String command) {
|
||||
if (client.connected()) {
|
||||
sendIRC(command);
|
||||
|
Loading…
Reference in New Issue
Block a user