You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution:
FILE OctoPrintAPI.h :
CHANGE:
long jobFilamentTool0Length;
TO:
float jobFilamentTool0Length;
AND
CHANGE:
long jobFilamentTool1Length;
TO:
float jobFilamentTool1Length;
FILE OctoPrintAPI.cpp:
CHANGE:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool0"]["length"] | 0;
TO:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool0"]["length"] | 0.0;
AND
CHANGE:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool1"]["length"] | 0;
TO:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool1"]["length"] | 0.0;
The text was updated successfully, but these errors were encountered:
Filament length is always reported as 0
Solution:
FILE OctoPrintAPI.h :
CHANGE:
long jobFilamentTool0Length;
TO:
float jobFilamentTool0Length;
AND
CHANGE:
long jobFilamentTool1Length;
TO:
float jobFilamentTool1Length;
FILE OctoPrintAPI.cpp:
CHANGE:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool0"]["length"] | 0;
TO:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool0"]["length"] | 0.0;
AND
CHANGE:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool1"]["length"] | 0;
TO:
printJob.jobFilamentTool0Length = root["job"]["filament"]["tool1"]["length"] | 0.0;
The text was updated successfully, but these errors were encountered: