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);
|
sendIRC(pingResponse);
|
||||||
} else {
|
} else {
|
||||||
parseAndDisplay(line);
|
parseAndDisplay(line);
|
||||||
lastActivityTime = millis(); // Reset activity timer
|
lastActivityTime = millis();
|
||||||
if (!screenOn) {
|
|
||||||
turnOnScreen(); // Turn on screen and backlight
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void parseAndDisplay(String line) {
|
void parseAndDisplay(String line) {
|
||||||
int firstSpace = line.indexOf(' ');
|
int firstSpace = line.indexOf(' ');
|
||||||
@ -534,6 +529,7 @@ void handleKeyboardInput(char key) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void sendRawCommand(String command) {
|
void sendRawCommand(String command) {
|
||||||
if (client.connected()) {
|
if (client.connected()) {
|
||||||
sendIRC(command);
|
sendIRC(command);
|
||||||
|
Loading…
Reference in New Issue
Block a user