-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
🚧 PFW-1206:Inital M75-M78 #4458
Conversation
Fix rebase
All values in bytes. Δ Delta to base
|
*/ | ||
case 75: //M75 Start/Resume the print job timer | ||
{ | ||
if ((!isPrintPaused) || (pause_time = 0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ||
here should be &&
otherwise pause_time
is always 0
When I run M75 when resuming a paused print, then pause_time
is never given a value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And ofcourse pause_time = 0
should be pause_time == 0
:)
Overflow issue@3d-gussner I believe the overflow issue comes from running M75 with M602 on resuming a print. M75 // Start/Resume the print job timer
M602 // Resume print
We cannot rely on checking if Steps to reproduce:Octoprint GCODE Scripts setupBefore print job starts
After print job completes
After print job is cancelled
After print job is paused
Before print job is resumed
Steps to reproduce:
ℹ️ there is no need to finish the print to reproduce this. One just needs to wait for longer time than whatever the print time was when it was paused. In the logs you will see A bit off topic - I looked a bit at Marlin 2.1I looked into how Marlin 2.1 is counting the print time, and it looks like to me they do not take into account how long the print has been paused. So the "paused time" seems to Prusa specific 🤔 I think we can simplify this somehow with the "print states" @3d-gussner talked about. We should only run What is the best approach to solving this? I'm honestly not sure right now and will think on it over the next week. For what it's worth I -- just for fun, and curiosity -- tried implementing Marlin 2.1's Here are my code changes if you're curious gudnimg@66d4823 :) It was mainly just for fun and see if it uses less memory.
|
Closing in favor of #4493 |
Initial M75-M78 gcode and update PL/HOST print statistics
In Octoprint Settings GCODE
Add
M75
in startAdd
M76
in pauseAdd
M75
in resumeAdd
M77
in stopKnown issue:
Sometimes after a longer USB print PAUSE the total print time completely wrong.
@gudnimg Can you please have a look?