[ESPeasySerial] Make it compile for core 2.4.1

This commit is contained in:
TD-er
2019-02-12 15:03:19 +01:00
parent 19ef8eb796
commit 62ce776c74
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -47,12 +47,16 @@ void ESPeasySerial::begin(unsigned long baud, SerialConfig config, SerialMode mo
}
if (isSWserial()) {
_swserial->begin(baud);
#if defined(ARDUINO_ESP8266_RELEASE_2_4_1) || defined(ARDUINO_ESP8266_RELEASE_2_4_0) || defined(ARDUINO_ESP8266_RELEASE_2_3_0)
// SoftwareSerial 3.4.1 and older used interrupts with 9600 baud
#else
if (baud == 9600) {
// Use interrupts for TX when baudrate is 9600.
// See change in this commit:
// https://github.com/plerup/espsoftwareserial/commit/7077979af30f12454b8e3165df8f41c73c5a2d24
_swserial->enableIntTx(true);
}
#endif
} else {
doHWbegin(baud, config, mode);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ESPeasySerial",
"version": "1.0.4",
"version": "1.0.5",
"keywords": [
"serial", "io", "softwareserial", "hardwareserial"
],
+1 -1
View File
@@ -1,5 +1,5 @@
name=ESPeasySerial
version=1.0.4
version=1.0.5
author=Gijs Noorlander
maintainer=Gijs Noorlander <gijs.noorlander@gmail.com>
sentence=Wrapper for SoftwareSerial and HardwareSerial for ESP8266 and ESP32.