Skip to content

Commit

Permalink
On ESP8266, HW serial announces parity errors as general rx errors. R…
Browse files Browse the repository at this point in the history
…eport them in order to indicate

possible parity errors or bugs in EspSoftwareSerial.
Release as bug fix 6.8.5
  • Loading branch information
dok-net committed Jun 23, 2020
1 parent addd91a commit e51872c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions examples/loopback/loopback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ void loop() {
{
++rxParityErrors;
}
#elif defined(ESP8266)
// current ESP8266 API does not flag parity errors separately
if (serialIUT.hasRxError())
{
++rxParityErrors;
}
#endif
++rxCount;
++inCnt;
Expand Down
6 changes: 6 additions & 0 deletions examples/repeater/repeater.ino
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ void loop() {
{
++parityErrors;
}
#elif defined(ESP8266)
// current ESP8266 API does not flag parity errors separately
if (repeater.hasRxError())
{
++parityErrors;
}
#endif
++rxCount;
#ifdef HALFDUPLEX
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "EspSoftwareSerial",
"version": "6.8.4",
"version": "6.8.5",
"keywords": [
"serial", "io", "softwareserial"
],
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EspSoftwareSerial
version=6.8.4
version=6.8.5
author=Peter Lerup, Dirk Kaar
maintainer=Dirk Kaar <[email protected]>
sentence=Implementation of the Arduino software serial for ESP8266/ESP32.
Expand Down

0 comments on commit e51872c

Please sign in to comment.