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