From 0049a8458092dc52930783afb56ad7ee24a87a05 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sun, 26 May 2024 01:04:28 -0400 Subject: [PATCH] Screen on turns back on from keyboard input now instead of any new message --- src/main.ino | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.ino b/src/main.ino index e0efd26..de3538e 100644 --- a/src/main.ino +++ b/src/main.ino @@ -445,16 +445,11 @@ 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(' '); int secondSpace = line.indexOf(' ', firstSpace + 1); @@ -534,6 +529,7 @@ void handleKeyboardInput(char key) { + void sendRawCommand(String command) { if (client.connected()) { sendIRC(command);