Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filament length allways 0 #42

Open
PitHerm opened this issue Jun 23, 2024 · 0 comments
Open

Filament length allways 0 #42

PitHerm opened this issue Jun 23, 2024 · 0 comments

Comments

@PitHerm
Copy link

PitHerm commented Jun 23, 2024

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant