Screen on turns back on from keyboard input now instead of any new message

This commit is contained in:
Dionysus 2024-05-26 01:04:28 -04:00
parent 5df11770d6
commit 0049a84580
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -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);