mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[ESPeasySerial] Make it compile for core 2.4.1
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
{
|
||||
"name": "ESPeasySerial",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"keywords": [
|
||||
"serial", "io", "softwareserial", "hardwareserial"
|
||||
],
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user