mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
disable debug on Serial.end() if debug on this interface.
This commit is contained in:
@ -510,6 +510,9 @@ void ICACHE_FLASH_ATTR HardwareSerial::begin(unsigned long baud, byte config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ICACHE_FLASH_ATTR HardwareSerial::end() {
|
void ICACHE_FLASH_ATTR HardwareSerial::end() {
|
||||||
|
if(uart_get_debug() == _uart_nr) {
|
||||||
|
uart_set_debug(UART_NO);
|
||||||
|
}
|
||||||
uart_uninit(_uart);
|
uart_uninit(_uart);
|
||||||
delete _rx_buffer;
|
delete _rx_buffer;
|
||||||
delete _tx_buffer;
|
delete _tx_buffer;
|
||||||
|
Reference in New Issue
Block a user