Merge branch 'rel-4.3' into rel-4.4
This commit is contained in:
commit
5888c37e7a
2 changed files with 13 additions and 10 deletions
|
|
@ -607,7 +607,9 @@ export function fdm_export(print, online, ondone, ondebug) {
|
|||
for (pidx=0; pidx<path.length; pidx++) {
|
||||
out = path[pidx];
|
||||
speedMMM = (out.speed || process.outputFeedrate) * 60; // range
|
||||
fanSpeed = out.fan ?? fanSpeed;
|
||||
if (!isBelt) {
|
||||
fanSpeed = out.fan ?? fanSpeed;
|
||||
}
|
||||
|
||||
// hint to controller that we're working on a specific object
|
||||
// so that gcode between start/stop comments can be cancelled
|
||||
|
|
@ -680,13 +682,13 @@ export function fdm_export(print, online, ondone, ondebug) {
|
|||
}
|
||||
|
||||
// in belt mode, fan can change per segment (for base)
|
||||
// if (isBelt) {
|
||||
if (isBelt) {
|
||||
setTempFanSpeed(out.fan);
|
||||
if (fanSpeed !== lastFanSpeed) {
|
||||
appendAllSub(gcodeFan);
|
||||
lastFanSpeed = fanSpeed;
|
||||
}
|
||||
// }
|
||||
}
|
||||
if (fanSpeed !== lastFanSpeed) {
|
||||
appendAllSub(gcodeFan);
|
||||
lastFanSpeed = fanSpeed;
|
||||
}
|
||||
|
||||
if (lastp && out.emit) {
|
||||
if (arcDist) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue