Skip to content

Commit

Permalink
Fix GPIO16 as Transmit enable pin (#21269)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Jun 2, 2024
1 parent 132b98f commit fd02f5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/default/TasmotaSerial-3.6.0/src/TasmotaSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ bool TasmotaSerial::isValidGPIOpin(int pin) {
}

void TasmotaSerial::setTransmitEnablePin(int tx_enable_pin) {
#ifdef ESP8266
if ((tx_enable_pin > -1) && (isValidGPIOpin(tx_enable_pin) || (16 == tx_enable_pin))) {
#endif
#ifdef ESP32
if ((tx_enable_pin > -1) && isValidGPIOpin(tx_enable_pin)) {
#endif
m_tx_enable_pin = tx_enable_pin;
pinMode(m_tx_enable_pin, OUTPUT);
digitalWrite(m_tx_enable_pin, LOW);
Expand Down

0 comments on commit fd02f5a

Please sign in to comment.