OctoPrint-AstroPrint
OctoPrint-AstroPrint copied to clipboard
[ Material Counter ] Sometimes very high material use lengths are reported
After running a GCODE file that exhibited this behavior through the material counter code, the length was accurate. The only think I can think of at the moment is that the function count_material is called more than once for each command in some cases.
The function is register to the following octoprint hook:
"octoprint.comm.protocol.gcode.sent": __plugin_implementation__.count_material