Browse Source

Fix dummy thermistors

Fixes #17422

Co-Authored-By: Moeschus <moeschus@users.noreply.github.com>
vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
5507b6073c
  1. 8
      Marlin/src/module/temperature.cpp

8
Marlin/src/module/temperature.cpp

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

Loading…
Cancel
Save