Skip to content

Commit 9ec5d20

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
disable UART before making all pins INPUTs
1 parent b4c9377 commit 9ec5d20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_wiring_digital.c

+5
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ extern void __detachInterrupt(uint8_t pin) {
154154
}
155155

156156
void initPins() {
157+
//Disable UART interrupts
158+
system_set_os_print(0);
159+
U0IE = 0;
160+
U1IE = 0;
161+
157162
for (int i = 0; i <= 5; ++i) {
158163
pinMode(i, INPUT);
159164
}

0 commit comments

Comments
 (0)