Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
User wanted just 1 Thermocouple on the bed
ie #define TEMP_SENSOR_BED -3
This results in a error
several small issue where found.
The tests to set HAS_MAX_TC, HAS_MAX6675, HAS_MAX31855 and HAS_MAX31865 where called to soon, before TEMP_SENSOR_BED_IS_MAX6675, TEMP_SENSOR_BED_IS_MAX31855 and TEMP_SENSOR_BED_IS_MAX31865 where set,
So this code was moved down a little so they get set correctly
A block of code for Thermocouple on hotends was not correctly guarded.
Used #if HAS_MAX_TC , but that includes beds with a thermocouple
updated to use #if TEMP_SENSOR_IS_MAX_TC(0) || TEMP_SENSOR_IS_MAX_TC(1) || TEMP_SENSOR_IS_MAX_TC(2)
Also removed a compiler warning due to TEMP_SENSOR_BED_MAX_TC_TMAX being presumed to be a int vs a max_tc_temp_t
Requirements
#define TEMP_SENSOR_BED -3
Benefits
Builds as expected