Skip to content

Commit

Permalink
disable debug on Serial.end() if debug on this interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Links2004 committed May 1, 2015
1 parent d4e6561 commit a250492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cores/esp8266/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ void ICACHE_FLASH_ATTR HardwareSerial::begin(unsigned long baud, byte config) {
}

void ICACHE_FLASH_ATTR HardwareSerial::end() {
if(uart_get_debug() == _uart_nr) {
uart_set_debug(UART_NO);
}
uart_uninit(_uart);
delete _rx_buffer;
delete _tx_buffer;
Expand Down

0 comments on commit a250492

Please sign in to comment.