esp8266: Don't reset TX and RX lines. The pullup is required for

the Adafruit Huzzah Breakout because it has a diode to protect
against 5v logic which effectively blocks 1s and relies on the
pull up to produce them.
This commit is contained in:
Scott Shawcroft 2017-04-13 14:15:06 -07:00
parent 4a4f29b8f9
commit d1b15cf1a3
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin) {
void reset_pins(void) { void reset_pins(void) {
for (int i = 0; i < 17; i++) { for (int i = 0; i < 17; i++) {
if (i == 0 || (i > 6 && i < 13) || i == 12) { // 5 is RXD, 6 is TXD
if (i == 0 || (i > 4 && i < 13) || i == 12) {
continue; continue;
} }
uint32_t peripheral = PERIPHS_IO_MUX + i * 4; uint32_t peripheral = PERIPHS_IO_MUX + i * 4;