reformatting and comments
This commit is contained in:
parent
fb27a81bc1
commit
bc4949d2f8
1 changed files with 17 additions and 17 deletions
|
|
@ -257,15 +257,15 @@ var gs_kiri_fdm = exports;
|
|||
settings = print.settings,
|
||||
device = settings.device,
|
||||
process = settings.process,
|
||||
time = 0,
|
||||
layer = 0,
|
||||
fan_power = device.gcodeFan,
|
||||
trackProgress = device.gcodeTrack,
|
||||
layer1speed = process.firstLayerSpeed,
|
||||
decimals = 4,
|
||||
time = 0,
|
||||
layer = 0,
|
||||
output = [],
|
||||
outputLength = 0,
|
||||
lastProgress = 0,
|
||||
decimals = 4,
|
||||
progress = 0,
|
||||
distance = 0,
|
||||
emitted = 0,
|
||||
|
|
@ -378,7 +378,7 @@ var gs_kiri_fdm = exports;
|
|||
append(o.join(''));
|
||||
}
|
||||
|
||||
// find total distance traveled by head as approx for progress
|
||||
// calc total distance traveled by head as proxy for progress
|
||||
var allout = [],
|
||||
totaldistance = 0;
|
||||
layers.forEach(function(outs) { allout.appendAll(outs) });
|
||||
|
|
@ -390,9 +390,9 @@ var gs_kiri_fdm = exports;
|
|||
append("; --- layer "+layer+" ---");
|
||||
// second layer fan on
|
||||
if (layer === 1 && fan_power) append(constReplace(fan_power,consts));
|
||||
// first layer 50% underspeed
|
||||
shortMMM = shortFact * maxPrintMMM;
|
||||
printMMM = maxPrintMMM;
|
||||
// first layer 50% underspeed
|
||||
if (layer === 0) {
|
||||
printMMM *= layer1speed;
|
||||
shortMMM *= layer1speed;
|
||||
|
|
|
|||
Loading…
Reference in a new issue