mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix telnet Client and flush pending line updates
This commit is contained in:
parent
14b0bf3913
commit
5b3a7b6140
@ -311,8 +311,10 @@ IRAM_ATTR void telnetLoop()
|
||||
if(telnetClient.connected()) {
|
||||
if(telnetConsole) {
|
||||
while(telnetConsole->readKey()) {
|
||||
if(!telnetConsole) return; // the console was destroyed by quit/exit
|
||||
if(!telnetConsole) return; // the telnetConsole was destroyed
|
||||
};
|
||||
bufferedTelnetClient.flush(); // flush pending updates
|
||||
|
||||
} else {
|
||||
telnetConsole = new ConsoleInput(&bufferedTelnetClient, HASP_CONSOLE_BUFFER);
|
||||
if(telnetConsole) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user