re-seed missing profile on device selection
This commit is contained in:
parent
9c1192c3ef
commit
901172c7f3
2 changed files with 6 additions and 7 deletions
2
notes.md
2
notes.md
|
|
@ -23,7 +23,6 @@
|
||||||
* `B` multi-extruder rendering of raft fails to offset the rest of the print
|
* `B` multi-extruder rendering of raft fails to offset the rest of the print
|
||||||
* `B` multi-extruder purge blocks fail to generate properly for rafts
|
* `B` multi-extruder purge blocks fail to generate properly for rafts
|
||||||
|
|
||||||
* `F` optional seed profile for a first-time-used device
|
|
||||||
* `F` slicing controls per user-defined z-region
|
* `F` slicing controls per user-defined z-region
|
||||||
* `F` control for size of purge block (with 0=disabled)
|
* `F` control for size of purge block (with 0=disabled)
|
||||||
* `F` add separate fill speed control
|
* `F` add separate fill speed control
|
||||||
|
|
@ -53,7 +52,6 @@
|
||||||
# FDM - BELT
|
# FDM - BELT
|
||||||
|
|
||||||
* `B` fix supports for belt printing
|
* `B` fix supports for belt printing
|
||||||
* `F` in slice mode, allow marking of repeat loop areas. add "loop" expert parameter
|
|
||||||
|
|
||||||
# CAM
|
# CAM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -696,11 +696,12 @@
|
||||||
local = isLocalDevice(devicename),
|
local = isLocalDevice(devicename),
|
||||||
dproc = current.devproc[devicename],
|
dproc = current.devproc[devicename],
|
||||||
dev = current.device = CONF.device_from_code(code,mode),
|
dev = current.device = CONF.device_from_code(code,mode),
|
||||||
proc = current.process;
|
proc = current.process,
|
||||||
|
newdev = dproc === undefined;
|
||||||
|
|
||||||
// first time device use, add any print profiles and set to default if present
|
// first time device use, add any print profiles and set to default if present
|
||||||
if (dproc === undefined) {
|
// if (newdev) {
|
||||||
console.log('new device', code);
|
// console.log('new device', code);
|
||||||
if (code.profiles) {
|
if (code.profiles) {
|
||||||
for (let profile of code.profiles) {
|
for (let profile of code.profiles) {
|
||||||
let profname = profile.processName;
|
let profname = profile.processName;
|
||||||
|
|
@ -708,13 +709,13 @@
|
||||||
console.log('adding profile', profname, 'to', mode);
|
console.log('adding profile', profname, 'to', mode);
|
||||||
current.sproc[mode][profname] = profile;
|
current.sproc[mode][profname] = profile;
|
||||||
}
|
}
|
||||||
if (!current.devproc[devicename]) {
|
if (newdev && !current.devproc[devicename]) {
|
||||||
console.log('setting default profile for new device', devicename, 'to', profname);
|
console.log('setting default profile for new device', devicename, 'to', profname);
|
||||||
current.devproc[devicename] = dproc = profname;
|
current.devproc[devicename] = dproc = profname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
|
|
||||||
dev.new = false;
|
dev.new = false;
|
||||||
dev.deviceName = devicename;
|
dev.deviceName = devicename;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue