1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-07 04:40:43 +02:00

Fix realtime command with not prntable char not properly interpreted

This commit is contained in:
Luc
2019-04-28 17:29:39 +02:00
parent b6cd4e3516
commit d66598e23f

View File

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