fix temp change after first layer

This commit is contained in:
Stewart Allen 2019-02-14 16:43:39 -05:00
commit 11f46c4e29
2 changed files with 8 additions and 3 deletions

View file

@ -584,8 +584,13 @@ var gs_kiri_fdm = exports;
// update temp if first layer temp specified
if (process.firstLayerNozzleTemp) {
consts.temp = process.outputTemp;
if (t0) append(constReplace("M104 S{temp} T0", consts));
if (t1) append(constReplace("M104 S{temp} T1", consts));
if (t0) {
append(constReplace("M104 S{temp} T0", consts));
} else if (t1) {
append(constReplace("M104 S{temp} T1", consts));
} else {
append(constReplace("M104 S{temp} T{tool}", consts));
}
}
}

View file

@ -1,7 +1,7 @@
var exports = {
COPYRIGHT:"Copyright (C) 2014-2019 Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE:"See the license.md file included with the source distribution",
VERSION:"1.2.7"
VERSION:"1.2.8"
};
if (!module) var module = {};
module.exports = exports;