Fix PN532 on ESP32 Serial flush both Tx and Rx buffers (#10910)

Fix PN532 on ESP32 Serial flush both Tx and Rx buffers (#10910)
This commit is contained in:
Theo Arends 2021-02-27 16:58:50 +01:00
parent 05e5bdaa50
commit 35427d9b36
3 changed files with 28 additions and 1 deletions

View File

@ -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]

View File

@ -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)

View File

@ -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;