Fix sensors and drivers using TasmotaSerial regression from 6.6.0.8

Fix sensors and drivers using TasmotaSerial regression from 6.6.0.8 (#6320)
This commit is contained in:
Theo Arends 2019-08-30 15:58:36 +02:00
parent b363bb55a9
commit 0c762f7c2a
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "TasmotaSerial",
"version": "2.3.2",
"version": "2.3.3",
"keywords": [
"serial", "io", "TasmotaSerial"
],

View File

@ -1,5 +1,5 @@
name=TasmotaSerial
version=2.3.2
version=2.3.3
author=Theo Arends
maintainer=Theo Arends <theo@arends.com>
sentence=Implementation of software serial with hardware serial fallback for ESP8266.

View File

@ -83,6 +83,7 @@ TasmotaSerial::TasmotaSerial(int receive_pin, int transmit_pin, int hardware_fal
m_hardswap = false;
m_stop_bits = 1;
m_nwmode = nwmode;
serial_buffer_size = buffer_size;
if (!((isValidGPIOpin(receive_pin)) && (isValidGPIOpin(transmit_pin) || transmit_pin == 16))) {
return;
}