Different first layer height update

This update fixes the accounting of the layers when the first layer has different layer height than the following.
Firmware-Binaries
ThomasToka 2 months ago committed by GitHub
parent da9a4d0bea
commit 35f741905a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -154,9 +154,8 @@ class E3S1PROFORKBYTT_printdata_cura_v5_thumbnail(Script):
filament_used_g = math.ceil(volume_cm3 * density) if volume_cm3 * density > 0 else 0 # Total filament used in grams
elif line.startswith(";Layer height:"):
layer_height_value = round(float(line.split(":")[1].strip()), 2)
elif line.startswith(";MAXZ:"):
maxz_value = round(float(line.split(":")[1].strip()), 2)
layers = int(maxz_value / layer_height_value)
elif line.startswith(";LAYER_COUNT:"):
layers = int(line.split(":")[1])
elif line.startswith(";TIME:") and total_time == -1:
total_time = self.getTimeValue(line)

Loading…
Cancel
Save