What version of the firmware are you using?
[VER:1.3a.20210424:]
[OPT:PHBW]
Is the problem repeatable?
Yes
Under what conditions does the bug occur?
Sending Gcodes having comments like "G91 X10 F100 (MSG,MyComment)"
I have checked the code and found that Gcode Comments are sent to the CLIENT_SERIAL interface.
According to the Wiki:, it should be send to all open interfaces.
I changed it to CLIENT_ALL and now it is working OK.
I noticed that error messages when using button macro's, are also only send to the CLIENT_SERIAL interface. I am not sure if this is intended.
I changed it to CLIENT_ALL in my fork because I normally connect using BT or WiFi.
system.cpp
void __attribute__((weak)) user_defined_macro(uint8_t index) {
// must be in Idle
if (sys.state != State::Idle) {
grbl_msg_sendf(CLIENT_ALL, MsgLevel::Info, "Macro button only permitted in idle");
return;
}
String user_macro;
char line[255];
switch (index) {
case 0:
user_macro = user_macro0->get();
break;
case 1:
user_macro = user_macro1->get();
break;
case 2:
user_macro = user_macro2->get();
break;
case 3:
user_macro = user_macro3->get();
break;
default:
return;
}
if (user_macro == "") {
grbl_msg_sendf(CLIENT_ALL, MsgLevel::Info, "Macro User/Macro%d empty", index);
return;
}
user_macro.replace('&', '\n');
user_macro.toCharArray(line, 255, 0);
strcat(line, "\r");
WebUI::inputBuffer.push(line);
}
What version of the firmware are you using? [VER:1.3a.20210424:] [OPT:PHBW]
Is the problem repeatable? Yes
Under what conditions does the bug occur? Sending Gcodes having comments like "G91 X10 F100 (MSG,MyComment)"
I have checked the code and found that Gcode Comments are sent to the CLIENT_SERIAL interface. According to the Wiki:, it should be send to all open interfaces. I changed it to CLIENT_ALL and now it is working OK.
I noticed that error messages when using button macro's, are also only send to the CLIENT_SERIAL interface. I am not sure if this is intended. I changed it to CLIENT_ALL in my fork because I normally connect using BT or WiFi.