mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 20:43:32 +00:00
🎨 Misc. style and cleanup
This commit is contained in:
parent
0aea3ae058
commit
fd595aa01b
@ -21,7 +21,7 @@
|
||||
*/
|
||||
#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_set.h"
|
||||
|
@ -1990,9 +1990,7 @@ void MarlinSettings::postprocess() {
|
||||
_FIELD_TEST(lcd_contrast);
|
||||
uint8_t lcd_contrast;
|
||||
EEPROM_READ(lcd_contrast);
|
||||
if (!validating) {
|
||||
TERN_(HAS_LCD_CONTRAST, ui.set_contrast(lcd_contrast));
|
||||
}
|
||||
TERN_(HAS_LCD_CONTRAST, if (!validating) ui.set_contrast(lcd_contrast));
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -272,7 +272,7 @@
|
||||
#define EXP2_09_PIN P0_15
|
||||
#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
|
||||
#define BTN_ENC EXP1_06_PIN
|
||||
|
@ -203,7 +203,7 @@
|
||||
#define EXP1_09_PIN P0_16
|
||||
#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."
|
||||
|
||||
/**
|
||||
|
@ -136,7 +136,7 @@
|
||||
#define EXP1_3 PB7
|
||||
#endif
|
||||
|
||||
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
|
||||
#if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
|
||||
/**
|
||||
* ------ ------ ------
|
||||
* (ENT) |10 9 | (BEEP) |10 9 | |10 9 |
|
||||
|
@ -187,7 +187,7 @@
|
||||
#error "Define RET6_12864_LCD or VET6_12864_LCD to select pins for CR10_STOCKDISPLAY with the Creality V4 controller."
|
||||
#endif
|
||||
|
||||
#elif EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
|
||||
#elif HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
|
||||
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC PB14
|
||||
|
@ -216,7 +216,7 @@
|
||||
#define BTN_EN1 EXP1_08_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
|
||||
#define BTN_ENC PB14
|
||||
|
Loading…
Reference in New Issue
Block a user