update notes. add device to stats

This commit is contained in:
Stewart Allen 2018-01-07 11:16:16 -05:00
commit e1fefe786d
3 changed files with 9 additions and 6 deletions

View file

@ -2012,6 +2012,8 @@ self.kiri.license = exports.LICENSE;
settings.mode = mode;
// restore cached device profile for this mode
if (settings.cdev[mode]) settings.device = settings.cdev[mode];
// update device stat for FDM/CAM
STATS.set('dn', settings.filter[mode] || '.laser.');
MODE = MODES[mode];
UC.setMode(MODE);
loadNamedSetting();
@ -2786,6 +2788,8 @@ self.kiri.license = exports.LICENSE;
function setDeviceCode(code, devicename) {
try {
STATS.set('dn', devicename);
if (typeof(code) === 'string') code = js2o(code) || {};
var cmd = code.cmd || {},