Pārlūkot izejas kodu

Merge pull request #3239 from thinkyhead/rc_jbrazio_fanerr

Closes #3235. Fix dogm lcd error when FAN_PIN is defined as -1
Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
f52f388bda
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4
    2
      Marlin/dogm_lcd_implementation.h

+ 4
- 2
Marlin/dogm_lcd_implementation.h Parādīt failu

@@ -304,8 +304,10 @@ static void _draw_heater_status(int x, int heater) {
304 304
 static void lcd_implementation_status_screen() {
305 305
   u8g.setColorIndex(1); // black on white
306 306
 
307
-  // Symbols menu graphics, animated fan
308
-  u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT, (blink % 2) && fanSpeeds[0] ? status_screen0_bmp : status_screen1_bmp);
307
+  #if HAS_FAN0
308
+    // Symbols menu graphics, animated fan
309
+    u8g.drawBitmapP(9, 1, STATUS_SCREENBYTEWIDTH, STATUS_SCREENHEIGHT, (blink % 2) && fanSpeeds[0] ? status_screen0_bmp : status_screen1_bmp);
310
+  #endif
309 311
 
310 312
   #if ENABLED(SDSUPPORT)
311 313
     // SD Card Symbol

Notiek ielāde…
Atcelt
Saglabāt