AstroPrint / OctoPrint-AstroPrint

Connect your OctoPrint device to the AstroPrint 3D Printing Cloud
31 stars 10 forks source link

[ Material Counter ] Sometimes very high material use lengths are reported #95

Open CoDanny opened 4 years ago

CoDanny commented 4 years ago

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