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

Fix LCD prepare menu when heating #5658

Closed
wants to merge 1 commit into from
Closed

Fix LCD prepare menu when heating #5658

wants to merge 1 commit into from

Conversation

MagoKimbra
Copy link
Contributor

When iheat the hotend or preheat PLA, ABS or temperature control the prepare menu becomes empty.
I deleted the break and now it works perfectly.
It seems to me as strange thing, but for some reason the break not only comes from the HOTEND_LOOP, but the routine itself.
Sorry for english!

When heating prepare menu is clean, break it is error.
@@ -1403,7 +1403,7 @@ void kill_screen(const char* lcd_msg) {
// Cooldown
//
bool has_heat = false;
HOTEND_LOOP() if (thermalManager.target_temperature[e]) { has_heat = true; break; }
HOTEND_LOOP() if (thermalManager.target_temperature[e]) has_heat = true;
#if HAS_TEMP_BED
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is HOTEND_LOOP is not always a loop

#if HOTENDS == 1
  #define HOTEND_LOOP() const int8_t e = 0;
  #define HOTEND_INDEX  0
  #define EXTRUDER_IDX  0
#else
  #define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
  #define HOTEND_INDEX  e
  #define EXTRUDER_IDX  active_extruder
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right!!

@billyd60
Copy link

billyd60 commented Jan 5, 2017

edit deleted

@ghost
Copy link

ghost commented Jan 5, 2017

#5647

@MagoKimbra
Copy link
Contributor Author

Sorry i did not see that!

@Roxy-3D
Copy link
Member

Roxy-3D commented Jan 5, 2017

Sorry i did not see that!

Not a problem! I was going to hunt down and post that issue so you would have confirmation that your fix worked. But I ran out of time yesterday.

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

Successfully merging this pull request may close these issues.

5 participants