Kaynağa Gözat

Update status_screen_DOGM.cpp

Scott Lahteine 5 yıl önce
ebeveyn
işleme
ff4301a422
No account linked to committer's email address
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4
    4
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

+ 4
- 4
Marlin/src/lcd/dogm/status_screen_DOGM.cpp Dosyayı Görüntüle

349
     #if ENABLED(SHOW_REMAINING_TIME)
349
     #if ENABLED(SHOW_REMAINING_TIME)
350
       static u8g_uint_t estimation_x_pos = 0;
350
       static u8g_uint_t estimation_x_pos = 0;
351
       static char estimation_string[10];
351
       static char estimation_string[10];
352
-      #if ENABLED(DOGM_SD_PERCENT) && ENABLED(ROTATE_PROGRESS_DISPLAY)
352
+      #if BOTH(DOGM_SD_PERCENT, ROTATE_PROGRESS_DISPLAY)
353
         #define PROGRESS_TIME_PREFIX "PROG"
353
         #define PROGRESS_TIME_PREFIX "PROG"
354
         #define ELAPSED_TIME_PREFIX "ELAP"
354
         #define ELAPSED_TIME_PREFIX "ELAP"
355
         #define SHOW_REMAINING_TIME_PREFIX "REM"
355
         #define SHOW_REMAINING_TIME_PREFIX "REM"
419
               #endif
419
               #endif
420
             ));
420
             ));
421
           }
421
           }
422
-          #if ENABLED(SHOW_REMAINING_TIME)  && ENABLED(ROTATE_PROGRESS_DISPLAY) // Tristate progress display mode
423
-            progress_x_pos = _SD_DURATION_X(strlen(progress_string)+1);
422
+          #if BOTH(SHOW_REMAINING_TIME, ROTATE_PROGRESS_DISPLAY) // Tri-state progress display mode
423
+            progress_x_pos = _SD_DURATION_X(strlen(progress_string) + 1);
424
           #endif
424
           #endif
425
         #endif
425
         #endif
426
       }
426
       }
441
             else {
441
             else {
442
               const bool has_days = (estimation.value >= 60*60*24L);
442
               const bool has_days = (estimation.value >= 60*60*24L);
443
               const uint8_t len = estimation.toDigital(estimation_string, has_days);
443
               const uint8_t len = estimation.toDigital(estimation_string, has_days);
444
-              #if ENABLED(DOGM_SD_PERCENT) && ENABLED(ROTATE_PROGRESS_DISPLAY)
444
+              #if BOTH(DOGM_SD_PERCENT, ROTATE_PROGRESS_DISPLAY)
445
                 estimation_x_pos = _SD_DURATION_X(len);
445
                 estimation_x_pos = _SD_DURATION_X(len);
446
               #else
446
               #else
447
                 estimation_x_pos = _SD_DURATION_X(len + 1);
447
                 estimation_x_pos = _SD_DURATION_X(len + 1);

Loading…
İptal
Kaydet