File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,8 @@ var XYfeedrate=$XY_FEEDRATE$;
385
385
var Zfeedrate=$Z_FEEDRATE$;
386
386
var Efeedrate=$E_FEEDRATE$;
387
387
388
- function Sendcommand (commandtxt , showresult = false ){
388
+ function Sendcommand (commandtxt , showresult ){
389
+ if (typeof showresult === ' undefined' )showresult= false
389
390
var xmlhttp = new XMLHttpRequest();
390
391
var url = " /command?plain=" +encodeURIComponent(commandtxt);
391
392
if (! showresult)url = " /command_silent?plain=" +encodeURIComponent(commandtxt);
@@ -407,7 +408,8 @@ ms += new Date().getTime();
407
408
while (new Date() < ms){ }
408
409
}
409
410
410
- function SendJogcommand ( cmd , feedrate , extra = " " ){
411
+ function SendJogcommand ( cmd , feedrate , extra ){
412
+ if (typeof extra === ' undefined' )extra= " "
411
413
if (extra != " " ){
412
414
Sendcommand(extra);
413
415
delay(100);
You can’t perform that action at this time.
0 commit comments