update notes. add device to stats
This commit is contained in:
parent
ac96381dfa
commit
e1fefe786d
3 changed files with 9 additions and 6 deletions
|
|
@ -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 || {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue