Browse Source

Fix Hotend Idle Timeout comment (#18032)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
thisiskeithb 5 years ago
parent
commit
1e32df4c75
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/Configuration_adv.h
  2. 1
    1
      Marlin/src/feature/hotend_idle.h

+ 1
- 1
Marlin/Configuration_adv.h View File

336
  */
336
  */
337
 //#define HOTEND_IDLE_TIMEOUT
337
 //#define HOTEND_IDLE_TIMEOUT
338
 #if ENABLED(HOTEND_IDLE_TIMEOUT)
338
 #if ENABLED(HOTEND_IDLE_TIMEOUT)
339
-  #define HOTEND_IDLE_DURATION_SEC    5     // (minutes) Time without extruder movement to trigger protection
339
+  #define HOTEND_IDLE_TIMEOUT_SEC (5*60)    // (seconds) Time without extruder movement to trigger protection
340
   #define HOTEND_IDLE_MIN_TRIGGER   180     // (°C) Minimum temperature to enable hotend protection
340
   #define HOTEND_IDLE_MIN_TRIGGER   180     // (°C) Minimum temperature to enable hotend protection
341
   #define HOTEND_IDLE_NOZZLE_TARGET   0     // (°C) Safe temperature for the nozzle after timeout
341
   #define HOTEND_IDLE_NOZZLE_TARGET   0     // (°C) Safe temperature for the nozzle after timeout
342
   #define HOTEND_IDLE_BED_TARGET      0     // (°C) Safe temperature for the bed after timeout
342
   #define HOTEND_IDLE_BED_TARGET      0     // (°C) Safe temperature for the bed after timeout

+ 1
- 1
Marlin/src/feature/hotend_idle.h View File

27
 public:
27
 public:
28
   static void check();
28
   static void check();
29
 private:
29
 private:
30
-  static constexpr millis_t hp_interval = SEC_TO_MS(HOTEND_IDLE_DURATION_SEC);
30
+  static constexpr millis_t hp_interval = SEC_TO_MS(HOTEND_IDLE_TIMEOUT_SEC);
31
   static millis_t next_protect_ms;
31
   static millis_t next_protect_ms;
32
   static void check_hotends(const millis_t &ms);
32
   static void check_hotends(const millis_t &ms);
33
   static void check_e_motion(const millis_t &ms);
33
   static void check_e_motion(const millis_t &ms);

Loading…
Cancel
Save