🎨 Misc. style and cleanup

This commit is contained in:
Scott Lahteine 2022-01-19 02:20:32 -06:00
parent 7b4f5108ac
commit 8ea172cafe
7 changed files with 7 additions and 9 deletions

View file

@ -21,7 +21,7 @@
*/ */
#include "../../../inc/MarlinConfigPre.h" #include "../../../inc/MarlinConfigPre.h"
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI) #if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
#include "dwin_api.h" #include "dwin_api.h"
#include "dwin_set.h" #include "dwin_set.h"

View file

@ -1990,9 +1990,7 @@ void MarlinSettings::postprocess() {
_FIELD_TEST(lcd_contrast); _FIELD_TEST(lcd_contrast);
uint8_t lcd_contrast; uint8_t lcd_contrast;
EEPROM_READ(lcd_contrast); EEPROM_READ(lcd_contrast);
if (!validating) { TERN_(HAS_LCD_CONTRAST, if (!validating) ui.set_contrast(lcd_contrast));
TERN_(HAS_LCD_CONTRAST, ui.set_contrast(lcd_contrast));
}
} }
// //

View file

@ -272,7 +272,7 @@
#define EXP2_09_PIN P0_15 #define EXP2_09_PIN P0_15
#define EXP2_10_PIN P0_17 #define EXP2_10_PIN P0_17
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI) #if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
// RET6 DWIN ENCODER LCD // RET6 DWIN ENCODER LCD
#define BTN_ENC EXP1_06_PIN #define BTN_ENC EXP1_06_PIN

View file

@ -203,7 +203,7 @@
#define EXP1_09_PIN P0_16 #define EXP1_09_PIN P0_16
#define EXP1_10_PIN P2_08 #define EXP1_10_PIN P2_08
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI) #if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
#error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue." #error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue."
/** /**

View file

@ -136,7 +136,7 @@
#define EXP1_3 PB7 #define EXP1_3 PB7
#endif #endif
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI) #if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
/** /**
* ------ ------ ------ * ------ ------ ------
* (ENT) |10 9 | (BEEP) |10 9 | |10 9 | * (ENT) |10 9 | (BEEP) |10 9 | |10 9 |

View file

@ -187,7 +187,7 @@
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller." #error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
#endif #endif
#elif EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI) #elif HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
// RET6 DWIN ENCODER LCD // RET6 DWIN ENCODER LCD
#define BTN_ENC PB14 #define BTN_ENC PB14

View file

@ -216,7 +216,7 @@
#define BTN_EN1 EXP1_08_PIN #define BTN_EN1 EXP1_08_PIN
#define BTN_EN2 EXP1_06_PIN #define BTN_EN2 EXP1_06_PIN
#elif EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI) #elif HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
// RET6 DWIN ENCODER LCD // RET6 DWIN ENCODER LCD
#define BTN_ENC PB14 #define BTN_ENC PB14