소스 검색

Add a heating indicator X offset

Scott Lahteine 7 년 전
부모
커밋
07db5638e2
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 5
- 1
Marlin/src/lcd/ultralcd_impl_DOGM.h 파일 보기

@@ -394,6 +394,10 @@ FORCE_INLINE void _draw_centered_temp(const int16_t temp, const uint8_t x, const
394 394
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
395 395
 }
396 396
 
397
+#ifndef HEAT_INDICATOR_X
398
+  #define HEAT_INDICATOR_X 8
399
+#endif
400
+
397 401
 FORCE_INLINE void _draw_heater_status(const uint8_t x, const int8_t heater, const bool blink) {
398 402
   #if !HEATER_IDLE_HANDLER
399 403
     UNUSED(blink);
@@ -423,7 +427,7 @@ FORCE_INLINE void _draw_heater_status(const uint8_t x, const int8_t heater, cons
423 427
     _draw_centered_temp((isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)) + 0.5, x, 28);
424 428
 
425 429
   if (PAGE_CONTAINS(17, 20)) {
426
-    const uint8_t h = isBed ? 7 : 8,
430
+    const uint8_t h = isBed ? 7 : HEAT_INDICATOR_X,
427 431
                   y = isBed ? 18 : 17;
428 432
     if (isBed ? thermalManager.isHeatingBed() : thermalManager.isHeatingHotend(heater)) {
429 433
       u8g.setColorIndex(0); // white on black

Loading…
취소
저장