Skip to content

Commit 8681243

Browse files
authored
Remove extraneous Serial init (#16794)
1 parent 54aff83 commit 8681243

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

Marlin/src/HAL/HAL_LPC1768/main.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,6 @@ void HAL_init() {
136136
#endif
137137
}
138138

139-
#if NUM_SERIAL > 0
140-
MYSERIAL0.begin(BAUDRATE);
141-
#if NUM_SERIAL > 1
142-
MYSERIAL1.begin(BAUDRATE);
143-
#endif
144-
SERIAL_PRINTF("\n\necho:%s (%dMhz) Initialized\n", isLPC1769() ? "LPC1769" : "LPC1768", SystemCoreClock / 1000000);
145-
SERIAL_FLUSHTX();
146-
#endif
147-
148139
HAL_timer_init();
149140
}
150141

Marlin/src/MarlinCore.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -880,15 +880,10 @@ void setup() {
880880

881881
#if NUM_SERIAL > 0
882882
MYSERIAL0.begin(BAUDRATE);
883-
#if NUM_SERIAL > 1
884-
MYSERIAL1.begin(BAUDRATE);
885-
#endif
886-
#endif
887-
888-
#if NUM_SERIAL > 0
889883
uint32_t serial_connect_timeout = millis() + 1000UL;
890884
while (!MYSERIAL0 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
891885
#if NUM_SERIAL > 1
886+
MYSERIAL1.begin(BAUDRATE);
892887
serial_connect_timeout = millis() + 1000UL;
893888
while (!MYSERIAL1 && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
894889
#endif

0 commit comments

Comments
 (0)