Skip to content

Commit 70c8859

Browse files
ellenspthinkyhead
authored andcommitted
🩹 Fix Ender 2 stock LCD (#25538)
1 parent 980fba8 commit 70c8859

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@
4646
// LCD / Controller
4747
//
4848
#if ANY(MKS_MINI_12864, CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
49-
#if ENABLED(CR10_STOCKDISPLAY)
49+
#if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
5050
#define LCD_PINS_RS 28 // ST9720 CS
5151
#define LCD_PINS_ENABLE 17 // ST9720 DAT
5252
#define LCD_PINS_D4 30 // ST9720 CLK
53-
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
53+
#endif
54+
#if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
5455
#define DOGLCD_CS 28
5556
#define DOGLCD_A0 30
5657
#endif

buildroot/tests/melzi_optiboot

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Build tests for melzi_optiboot
4+
#
5+
6+
# exit on first failure
7+
set -e
8+
9+
#
10+
# Ender 2
11+
#
12+
use_example_configs Creality/Ender-2
13+
exec_test $1 $2 "Ender 2" "$3"
14+
15+
# clean up
16+
restore_configs

0 commit comments

Comments
 (0)