Browse Source

Formatting in _draw_heater_status

Scott Lahteine 8 years ago
parent
commit
266ae8912a
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/ultralcd_impl_HD44780.h

+ 8
- 8
Marlin/ultralcd_impl_HD44780.h View File

582
 FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, const bool blink) {
582
 FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, const bool blink) {
583
   const bool isBed = heater < 0;
583
   const bool isBed = heater < 0;
584
 
584
 
585
-  const float t1 = (isBed ? thermalManager.degBed() : thermalManager.degHotend(heater));
586
-  const float t2 = (isBed ? thermalManager.degTargetBed() : thermalManager.degTargetHotend(heater));
585
+  const float t1 = (isBed ? thermalManager.degBed()       : thermalManager.degHotend(heater)),
586
+              t2 = (isBed ? thermalManager.degTargetBed() : thermalManager.degTargetHotend(heater));
587
 
587
 
588
   if (prefix >= 0) lcd.print(prefix);
588
   if (prefix >= 0) lcd.print(prefix);
589
 
589
 
592
 
592
 
593
   #if ENABLED(ADVANCED_PAUSE_FEATURE)
593
   #if ENABLED(ADVANCED_PAUSE_FEATURE)
594
     const bool is_idle = (!isBed ? thermalManager.is_heater_idle(heater) :
594
     const bool is_idle = (!isBed ? thermalManager.is_heater_idle(heater) :
595
-    #if HAS_TEMP_BED
596
-      thermalManager.is_bed_idle()
597
-    #else
598
-      false
599
-    #endif
595
+      #if HAS_TEMP_BED
596
+        thermalManager.is_bed_idle()
597
+      #else
598
+        false
599
+      #endif
600
     );
600
     );
601
 
601
 
602
     if (!blink && is_idle) {
602
     if (!blink && is_idle) {
606
     }
606
     }
607
     else
607
     else
608
   #endif
608
   #endif
609
-  lcd.print(itostr3left(t2 + 0.5));
609
+      lcd.print(itostr3left(t2 + 0.5));
610
 
610
 
611
   if (prefix >= 0) {
611
   if (prefix >= 0) {
612
     lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
612
     lcd_printPGM(PSTR(LCD_STR_DEGREE " "));

Loading…
Cancel
Save