Skip to content

Commit

Permalink
Fix filament_used bug, causing the information screen on the printer …
Browse files Browse the repository at this point in the history
…to show wrong information about filament usage.
  • Loading branch information
egeakman committed Apr 7, 2022
1 parent d854147 commit 5585acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gcode2zaxe/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def read_gcode():
filament_used = round(
float(line.split(";Filament used:")[1].strip().replace("m", "")), 2
)
gcode_info["filament_used"] = f"{str(filament_used)}m"
gcode_info["filament_used"] = float(filament_used)

return gcode_info

Expand All @@ -94,7 +94,7 @@ def make_info():
"duration": read_gcode()["time"],
"extruder_temperature": 220,
"bed_temperature": 60,
"version": "1.0.4",
"version": "2.0.0",
}


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def latest_version(package_name):
description="Gcode to Zaxe Converter | executable: g2z",
long_description=long_description,
long_description_content_type="text/markdown",
version="2022.3.30",
version="2022.4.7",
license="AGPLv3",
download_url="https://github.com/egeakman/gcode2zaxe/archive/2022.3.30.tar.gz",
download_url="https://github.com/egeakman/gcode2zaxe/archive/2022.4.7.tar.gz",
packages=find_packages(where=".", exclude=["tests"]),
python_requires=">=3.5",
entry_points={
Expand Down

0 comments on commit 5585acc

Please sign in to comment.