Skip to content

Commit e51872c

Browse files
committed
On ESP8266, HW serial announces parity errors as general rx errors. Report them in order to indicate
possible parity errors or bugs in EspSoftwareSerial. Release as bug fix 6.8.5
1 parent addd91a commit e51872c

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

examples/loopback/loopback.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ void loop() {
231231
{
232232
++rxParityErrors;
233233
}
234+
#elif defined(ESP8266)
235+
// current ESP8266 API does not flag parity errors separately
236+
if (serialIUT.hasRxError())
237+
{
238+
++rxParityErrors;
239+
}
234240
#endif
235241
++rxCount;
236242
++inCnt;

examples/repeater/repeater.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ void loop() {
147147
{
148148
++parityErrors;
149149
}
150+
#elif defined(ESP8266)
151+
// current ESP8266 API does not flag parity errors separately
152+
if (repeater.hasRxError())
153+
{
154+
++parityErrors;
155+
}
150156
#endif
151157
++rxCount;
152158
#ifdef HALFDUPLEX

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EspSoftwareSerial",
3-
"version": "6.8.4",
3+
"version": "6.8.5",
44
"keywords": [
55
"serial", "io", "softwareserial"
66
],

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EspSoftwareSerial
2-
version=6.8.4
2+
version=6.8.5
33
author=Peter Lerup, Dirk Kaar
44
maintainer=Dirk Kaar <dok@dok-net.net>
55
sentence=Implementation of the Arduino software serial for ESP8266/ESP32.

0 commit comments

Comments
 (0)