Browse Source

Merge pull request #4203 from AnHardt/rem_wants_to_cool_warning

Remove wants_to_cool uninitialized warning
Scott Lahteine 9 years ago
parent
commit
e604c0955e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

4569
   #endif //TEMP_RESIDENCY_TIME > 0
4569
   #endif //TEMP_RESIDENCY_TIME > 0
4570
 
4570
 
4571
   float theTarget = -1.0, old_temp = 9999.0;
4571
   float theTarget = -1.0, old_temp = 9999.0;
4572
-  bool wants_to_cool;
4572
+  bool wants_to_cool = false;
4573
   cancel_heatup = false;
4573
   cancel_heatup = false;
4574
   millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
4574
   millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
4575
 
4575
 
4663
     #endif //TEMP_BED_RESIDENCY_TIME > 0
4663
     #endif //TEMP_BED_RESIDENCY_TIME > 0
4664
 
4664
 
4665
     float theTarget = -1.0, old_temp = 9999.0;
4665
     float theTarget = -1.0, old_temp = 9999.0;
4666
-    bool wants_to_cool;
4666
+    bool wants_to_cool = false;
4667
     cancel_heatup = false;
4667
     cancel_heatup = false;
4668
     millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
4668
     millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
4669
 
4669
 

Loading…
Cancel
Save