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

[BUG] Thermistors 998 & 999 make heated bed completely disappear from Marlin #20231

Closed
Patag opened this issue Nov 21, 2020 · 10 comments · Fixed by #20247
Closed

[BUG] Thermistors 998 & 999 make heated bed completely disappear from Marlin #20231

Patag opened this issue Nov 21, 2020 · 10 comments · Fixed by #20247
Assignees

Comments

@Patag
Copy link

Patag commented Nov 21, 2020

Bug Description

Since few days, the heated bed disappeared from info screen and all related menus.
I'm using dummy thermistor 998 (tried also 999) as bed sensor on a test bench.

Configuration Files

config.zip

Steps to Reproduce

  1. #define TEMP_SENSOR_BED 998 (or 999) in configuration.h
  2. Compile, download & run

Expected behavior:
Heated bed icon displayed on info screen with temp = 25° (or 100° if sensor 999).
All menus related to bed temperature displayed and functional.

Actual behavior:
None of the bed temperature related items are displayed

Additional Information

  • Provide pictures or links to videos that clearly demonstrate the issue.
  • See Contributing to Marlin for additional guidelines.
@ellensp
Copy link
Contributor

ellensp commented Nov 21, 2020

There was a PR that removed the need for dummy thermistors to need a pin, I suspect the lcd routines look for the existence of this pin as a flag to display the heated bed or not. #20159

@ellensp
Copy link
Contributor

ellensp commented Nov 21, 2020

yip confirmed

#if HAS_TEMP_BED && HAS_HEATER_BED
  #define HAS_HEATED_BED 1

is failing.

To me it looks like HAS_ADC_TEST(P) in Marlin/src/inc/Conditionals_post.h isnt right... should be
#define HAS_ADC_TEST(P) ((PIN_EXISTS(TEMP_##P) || ENABLED(HEATER_##P##_DUMMY_THERMISTOR)) && TEMP_SENSOR_##P != 0 && DISABLED(HEATER_##P##_USES_MAX6675))
This compiles and the bed is back.
@sjasonsmith thoughts?

@ellensp
Copy link
Contributor

ellensp commented Nov 21, 2020

Fairly sure I'm correct, so created PR.

@Patag
Copy link
Author

Patag commented Nov 21, 2020

Nice @ellensp !
May I close ?

@ellensp
Copy link
Contributor

ellensp commented Nov 21, 2020

please wait till pr gets merged, just in case there is an issue with it.

@Patag
Copy link
Author

Patag commented Nov 21, 2020

No worries

@sjasonsmith
Copy link
Contributor

Thanks @Patag & @ellensp for reporting and investigating this.

When I made my initial change I had assumed that all the temp sensors were handled in the same way, and must have only tested with two extruders using dummy thermistors.

I'm working on fixing those inconsistencies, which will let my version of that HAS_ADC_TEST macro work for all thermistors. My intent was for that macro to mean "This actually needs a hardware ADC", which shouldn't be required for a dummy thermistor with no pin assignment.

@sjasonsmith
Copy link
Contributor

@Patag a solution has now been merged. I'll close this issue, but please reply if you encounter further issues with this.

@Patag
Copy link
Author

Patag commented Nov 23, 2020

All is running fine here.
Thanks @sjasonsmith ! And @ellensp

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants