From d66598e23f65ae311d181a982dc2e06d71a019dd Mon Sep 17 00:00:00 2001 From: Luc Date: Sun, 28 Apr 2019 17:29:39 +0200 Subject: [PATCH] Fix realtime command with not prntable char not properly interpreted --- Grbl_Esp32/web_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Grbl_Esp32/web_server.cpp b/Grbl_Esp32/web_server.cpp index 4ac4f603..aa1764d3 100644 --- a/Grbl_Esp32/web_server.cpp +++ b/Grbl_Esp32/web_server.cpp @@ -522,6 +522,10 @@ void Web_Server::handle_web_command () uint8_t sindex = 0; scmd = get_Splited_Value(cmd,'\n', sindex); while ( scmd != "" ){ + if ((scmd.length() == 2) && (scmd[0] == 0xC2)){ + scmd[0]=scmd[1]; + scmd.remove(1,1); + } if (scmd.length() > 1)scmd += "\n"; else if (!is_realtime_cmd(scmd[0]) )scmd += "\n"; if (!Serial2Socket.push(scmd.c_str()))res = "Error";