Screen on turns back on from keyboard input now instead of any new message
This commit is contained in:
parent
5df11770d6
commit
0049a84580
@ -445,16 +445,11 @@ 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(' ');
|
||||||
int secondSpace = line.indexOf(' ', firstSpace + 1);
|
int secondSpace = line.indexOf(' ', firstSpace + 1);
|
||||||
@ -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