Browse Source

Fix dummy thermistors

Fixes #17422

Co-Authored-By: Moeschus <moeschus@users.noreply.github.com>
Scott Lahteine 4 years ago
parent
commit
5507b6073c
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/module/temperature.cpp

+ 4
- 4
Marlin/src/module/temperature.cpp View File

2277
 
2277
 
2278
   #if HAS_HEATED_BED
2278
   #if HAS_HEATED_BED
2279
     #if TEMPDIR(BED) < 0
2279
     #if TEMPDIR(BED) < 0
2280
-      #define BEDCMP(A,B) ((A)<=(B))
2280
+      #define BEDCMP(A,B) ((A)<(B))
2281
     #else
2281
     #else
2282
-      #define BEDCMP(A,B) ((A)>=(B))
2282
+      #define BEDCMP(A,B) ((A)>(B))
2283
     #endif
2283
     #endif
2284
     const bool bed_on = temp_bed.target > 0
2284
     const bool bed_on = temp_bed.target > 0
2285
       || TERN0(PIDTEMPBED, temp_bed.soft_pwm_amount) > 0
2285
       || TERN0(PIDTEMPBED, temp_bed.soft_pwm_amount) > 0
2290
 
2290
 
2291
   #if HAS_HEATED_CHAMBER
2291
   #if HAS_HEATED_CHAMBER
2292
     #if TEMPDIR(CHAMBER) < 0
2292
     #if TEMPDIR(CHAMBER) < 0
2293
-      #define CHAMBERCMP(A,B) ((A)<=(B))
2293
+      #define CHAMBERCMP(A,B) ((A)<(B))
2294
     #else
2294
     #else
2295
-      #define CHAMBERCMP(A,B) ((A)>=(B))
2295
+      #define CHAMBERCMP(A,B) ((A)>(B))
2296
     #endif
2296
     #endif
2297
     const bool chamber_on = (temp_chamber.target > 0);
2297
     const bool chamber_on = (temp_chamber.target > 0);
2298
     if (CHAMBERCMP(temp_chamber.raw, maxtemp_raw_CHAMBER)) max_temp_error(H_CHAMBER);
2298
     if (CHAMBERCMP(temp_chamber.raw, maxtemp_raw_CHAMBER)) max_temp_error(H_CHAMBER);

Loading…
Cancel
Save