Fix dummy thermistors

Fixes #17422

Co-Authored-By: Moeschus <moeschus@users.noreply.github.com>
This commit is contained in:
Scott Lahteine 2020-04-27 06:34:53 -05:00
parent c536b8de62
commit 5507b6073c

View file

@ -2277,9 +2277,9 @@ void Temperature::readings_ready() {
#if HAS_HEATED_BED
#if TEMPDIR(BED) < 0
#define BEDCMP(A,B) ((A)<=(B))
#define BEDCMP(A,B) ((A)<(B))
#else
#define BEDCMP(A,B) ((A)>=(B))
#define BEDCMP(A,B) ((A)>(B))
#endif
const bool bed_on = temp_bed.target > 0
|| TERN0(PIDTEMPBED, temp_bed.soft_pwm_amount) > 0
@ -2290,9 +2290,9 @@ void Temperature::readings_ready() {
#if HAS_HEATED_CHAMBER
#if TEMPDIR(CHAMBER) < 0
#define CHAMBERCMP(A,B) ((A)<=(B))
#define CHAMBERCMP(A,B) ((A)<(B))
#else
#define CHAMBERCMP(A,B) ((A)>=(B))
#define CHAMBERCMP(A,B) ((A)>(B))
#endif
const bool chamber_on = (temp_chamber.target > 0);
if (CHAMBERCMP(temp_chamber.raw, maxtemp_raw_CHAMBER)) max_temp_error(H_CHAMBER);