GSender, any special steps to use?

So I did some further review of the gSenders code. By modifying line 8892 of the index.js file found in your C:\Program Files\gSender\resources\app\server folder(if that is where you installed it), you can strip out all comments from being sent to the SO5 from macros, gcode files and the tool change wizard. I have already tested this and it works fine.

Changing
var commentMatcher = /\s*;.*/g
to
var commentMatcher = /\s*;.*|\(.*\)/g;

will allow you to use the built in fixed position tool change wizard. This will also strip all comments from macros and gcode files.

This can be found in the original code of gSender GrblController.js line 268. After the electron build it becomes line 8892 in index.js

All code changes needed in index.js:

  1. Line#8983 from line = line.replace('M6', '(M6)');
    to line = line.replace('M6', ';M6');
  2. Line#9118 from line = line.replace('M6', '(M6)');
    to line = line.replace('M6', ';M6');
  3. Line#8892 from var commentMatcher = /\s*;.*/g
    to var commentMatcher = /\s*;.*|\(.*\)/g;

Note: line numbers are based off of the v1.2.2 build

4 Likes