Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lw.comm-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SyslogIdentifier=lw.comm-server
WorkingDirectory=/home/pi/lw.comm-server
User=pi
#Group=<alternate group>
Environment=NODE_ENV=production PORT=8000
Environment=NODE_ENV=production WEB_PORT=8000

[Install]
WantedBy=multi-user.target
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@ io.sockets.on('connection', function (appSocket) {

} else if (data.indexOf('Grbl') === 0) { // Check if it's Grbl
firmware = 'grbl';
fVersion = data.substr(5, 4); // get version
var versionStart = data.indexOf(' ');
fVersion = data.substr(versionStart, 4); // get version
fDate = '';
writeLog('GRBL detected (' + fVersion + ')', 1);
io.sockets.emit('firmware', {firmware: firmware, version: fVersion, date: fDate});
Expand Down