Add parentheses to card macros
This commit is contained in:
@@ -505,7 +505,7 @@ uint16_t max_display_update_time = 0;
|
||||
if (currentScreen == lcd_status_screen)
|
||||
doubleclick_expire_ms = millis() + DOUBLECLICK_MAX_INTERVAL;
|
||||
}
|
||||
else if (screen == lcd_status_screen && currentScreen == lcd_main_menu && PENDING(millis(), doubleclick_expire_ms) && (planner.movesplanned() || IS_SD_PRINTING))
|
||||
else if (screen == lcd_status_screen && currentScreen == lcd_main_menu && PENDING(millis(), doubleclick_expire_ms) && (planner.movesplanned() || IS_SD_PRINTING()))
|
||||
screen =
|
||||
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
||||
lcd_babystep_zoffset
|
||||
@@ -652,7 +652,7 @@ void lcd_status_screen() {
|
||||
|
||||
#if ENABLED(LCD_SET_PROGRESS_MANUALLY) && ENABLED(SDSUPPORT) && (ENABLED(LCD_PROGRESS_BAR) || ENABLED(DOGLCD))
|
||||
// Progress bar % comes from SD when actively printing
|
||||
if (IS_SD_PRINTING)
|
||||
if (IS_SD_PRINTING())
|
||||
progress_bar_percent = card.percentDone();
|
||||
#endif
|
||||
|
||||
@@ -1109,7 +1109,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
||||
MENU_ITEM_EDIT_CALLBACK(bool, MSG_CASE_LIGHT, (bool*)&case_light_on, update_case_light);
|
||||
#endif
|
||||
|
||||
if (planner.movesplanned() || IS_SD_PRINTING)
|
||||
if (planner.movesplanned() || IS_SD_PRINTING())
|
||||
MENU_ITEM(submenu, MSG_TUNE, lcd_tune_menu);
|
||||
else
|
||||
MENU_ITEM(submenu, MSG_PREPARE, lcd_prepare_menu);
|
||||
@@ -2732,7 +2732,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
||||
// Change filament
|
||||
//
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
if (!IS_SD_FILE_OPEN) {
|
||||
if (!IS_SD_FILE_OPEN()) {
|
||||
#if E_STEPPERS == 1 && !ENABLED(FILAMENT_LOAD_UNLOAD_GCODES)
|
||||
if (thermalManager.targetHotEnoughToExtrude(active_extruder))
|
||||
MENU_ITEM(gcode, MSG_FILAMENTCHANGE, PSTR("M600 B0"));
|
||||
@@ -4411,7 +4411,7 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
||||
#endif // E_STEPPERS == 1
|
||||
|
||||
#if ENABLED(FILAMENT_LOAD_UNLOAD_GCODES)
|
||||
if (!planner.movesplanned() && !IS_SD_FILE_OPEN) {
|
||||
if (!planner.movesplanned() && !IS_SD_FILE_OPEN()) {
|
||||
// Load filament
|
||||
#if E_STEPPERS == 1
|
||||
PGM_P msg0 = PSTR(MSG_FILAMENTLOAD);
|
||||
@@ -5158,7 +5158,7 @@ void lcd_update() {
|
||||
|
||||
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT)
|
||||
|
||||
const uint8_t sd_status = (uint8_t)IS_SD_INSERTED;
|
||||
const uint8_t sd_status = (uint8_t)IS_SD_INSERTED();
|
||||
if (sd_status != lcd_sd_status && lcd_detected()) {
|
||||
|
||||
uint8_t old_sd_status = lcd_sd_status; // prevent re-entry to this block!
|
||||
|
||||
Reference in New Issue
Block a user