-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix: temperature auto-report timeout check, Fix invalid settings parameters #1438
Conversation
Great work! It also removes the "No printer attached!" reminder after the motherboard is disconnected and reconnected. |
…g.ini, add xy_offset_probing parsing
if (OS_GetTimeMs() > AUTOREPORT_TIMEOUT && !heat_update_waiting) | ||
{ | ||
if(heat_update_waiting) updateNextHeatCheckTime(); // set next timeout for temperature auto-report | ||
heat_update_waiting = storeCmd("M155 "); |
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.
heat_update_waiting = storeCmd("M155 ");
if(heat_update_waiting) updateNextHeatCheckTime();
The order should be reversed like above, otherwise "if(heat_update_waiting) updateNextHeatCheckTime()" is never executed.
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.
🤦♂️it was supposed to be this way but somehow the lines got interchanged accidentally.
With this PR if you send M155 S0 from TFT, it will be sent periodically forever, without a stop. If you try to set M155 Sx from outside, directly to the mainboard (OctoPrint, Pronterface) the TFT will send again M155 S0, so M155 cannot be enabled again from outside, only from the TFT. I suggest: If M155 is switched off, maybe "infoMachineSettings.autoReportTemp" should also be set to "0" and switched back to "1" as soon as M155 is enabled again. |
This was fixed 9 days ago when PR #1394 was merged into master. |
I'll see then. Thanks! I haven’t had time to upgrade lately. |
The fix for config.ini and inital baudrate is: In config.ini: and in config.c: Leave Configuration.h as it was. The flash is expected to store the actual baudrate, not its order in a list. Fixed in PR #1441 |
Hi Gurmeet. Hope you are fine. So this PR is going to change the way the "kind" of menu used is "named", right? From: Is there also any kind of functionality or look which changes or is it really only how it is named in config.ini? |
@kisslorand The parameters were read wrong after #1359 af86e84a7 because the setting signatures in Yes, the problem for the baud-rate issue was in @oldman4U yes, the icons for the classic menu and the menu layout were removed so there is no classic menu any more. The only thing that option now does is switch the status screen on and off. |
If there's a config.ini, the reading and storing of parameters from config.ini restores the order of the subsequent parameters. All I said that PR #1359 is not the cause of baudrate parameter being wrong after config.ini is loaded. Yes, you are right, any value can be provided as baudrate, which might be fine if someone uses a non-standard baudrate in its Marlin. Same goes for selecting the index of the baudrate, a user can provide also the wrong index. Using indexes makes the TFT to work only at a few predefined baudrates, which is totally fine for general usage. In case of storing only the index the fix would be:
and use "item_baudrate[infoSettings.baudrate]" instead of "infoSettings.baudrate" later in the whole code., where the real baudrate info is needed. |
kisslorand used #1359 to silently remove a feature mehmetsutas and I have been introducing after spending days and hours of developing and testing, because he does not like it. By doing so, he messed up config.ini. @guruathwal In case there is no technical reason for removing this feature, would you please be so kind and reverse what kisslorand did and reinstall the ability to choose, if a print finished information should be shown at the end of a print or not. Thank you |
@guruathwal |
M155
command.Fixes #1434