From 35427d9b36a0b993f8dc09f1ac926be9a28c919f Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 27 Feb 2021 16:58:50 +0100 Subject: [PATCH] Fix PN532 on ESP32 Serial flush both Tx and Rx buffers (#10910) Fix PN532 on ESP32 Serial flush both Tx and Rx buffers (#10910) --- CHANGELOG.md | 13 +++++++++++++ RELEASENOTES.md | 13 +++++++++++++ .../TasmotaSerial-3.2.0/src/TasmotaSerial.cpp | 3 ++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66156b59a..b5a3ca3c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. ## [Unreleased] - Development ## [9.3.1.1] +### Added +- Allow MCP230xx pinmode from output to input (#11104) +- SML VBUS support (#11125) + +### Changed +- TuyaMcu dimmer timeout (#11121) + +### Fixed +- Refactor acceleration function for shutter stepper and servo (#11088) +- LM75AD detection on different addresses (#11096) +- Timer loop when console is scrolled up regression from v9.3.0 (#11108) +- Display exception when no file system is present (#11125) +- PN532 on ESP32 Serial flush both Tx and Rx buffers (#10910) ## [Released] diff --git a/RELEASENOTES.md b/RELEASENOTES.md index fc39668fb..2ae0f984a 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -79,3 +79,16 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota [Complete list](BUILDS.md) of available feature and sensors. ## Changelog v9.3.1.1 +### Added +- Allow MCP230xx pinmode from output to input [#11104](https://github.com/arendst/Tasmota/issues/11104) +- SML VBUS support [#11125](https://github.com/arendst/Tasmota/issues/11125) + +### Changed +- TuyaMcu dimmer timeout [#11121](https://github.com/arendst/Tasmota/issues/11121) + +### Fixed +- Refactor acceleration function for shutter stepper and servo [#11088](https://github.com/arendst/Tasmota/issues/11088) +- LM75AD detection on different addresses [#11096](https://github.com/arendst/Tasmota/issues/11096) +- Timer loop when console is scrolled up regression from v9.3.0 [#11108](https://github.com/arendst/Tasmota/issues/11108) +- Display exception when no file system is present [#11125](https://github.com/arendst/Tasmota/issues/11125) +- PN532 on ESP32 Serial flush both Tx and Rx buffers [#10910](https://github.com/arendst/Tasmota/issues/10910) diff --git a/lib/default/TasmotaSerial-3.2.0/src/TasmotaSerial.cpp b/lib/default/TasmotaSerial-3.2.0/src/TasmotaSerial.cpp index c3eff150a..d49a5ff2a 100644 --- a/lib/default/TasmotaSerial-3.2.0/src/TasmotaSerial.cpp +++ b/lib/default/TasmotaSerial-3.2.0/src/TasmotaSerial.cpp @@ -173,7 +173,8 @@ void TasmotaSerial::flush(void) { Serial.flush(); #endif // ESP8266 #ifdef ESP32 - TSerial->flush(); + TSerial->flush(); // Flushes Tx only https://github.com/espressif/arduino-esp32/pull/4263 + while (TSerial->available()) { TSerial->read(); } #endif // ESP32 } else { m_in_pos = m_out_pos = 0;