From a6af8140b1f0ff213618cb8904f590354191aebd Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 4 Jul 2020 12:04:30 +0300 Subject: [PATCH] sns: fix SoftwareSerial ctor for recent versions --- code/espurna/sensors/MHZ19Sensor.h | 2 +- code/espurna/sensors/PMSX003Sensor.h | 2 +- code/espurna/sensors/SenseAirSensor.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/sensors/MHZ19Sensor.h b/code/espurna/sensors/MHZ19Sensor.h index 0faffbfa..1c88923a 100644 --- a/code/espurna/sensors/MHZ19Sensor.h +++ b/code/espurna/sensors/MHZ19Sensor.h @@ -76,7 +76,7 @@ class MHZ19Sensor : public BaseSensor { if (_serial) delete _serial; - _serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 32); + _serial = new SoftwareSerial(_pin_rx, _pin_tx, false); _serial->enableIntTx(false); _serial->begin(9600); calibrateAuto(_calibrateAuto); diff --git a/code/espurna/sensors/PMSX003Sensor.h b/code/espurna/sensors/PMSX003Sensor.h index 2161feb8..0eb1062c 100644 --- a/code/espurna/sensors/PMSX003Sensor.h +++ b/code/espurna/sensors/PMSX003Sensor.h @@ -217,7 +217,7 @@ class PMSX003Sensor : public BaseSensor, PMSX003 { if (_soft) { if (_serial) removeSerial(); - _serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 64); + _serial = new SoftwareSerial(_pin_rx, _pin_tx, false); static_cast(_serial)->enableIntTx(false); } diff --git a/code/espurna/sensors/SenseAirSensor.h b/code/espurna/sensors/SenseAirSensor.h index a46c76bf..841cfd00 100644 --- a/code/espurna/sensors/SenseAirSensor.h +++ b/code/espurna/sensors/SenseAirSensor.h @@ -162,7 +162,7 @@ class SenseAirSensor : public BaseSensor, SenseAir { if (_serial) delete _serial; - _serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 64); + _serial = new SoftwareSerial(_pin_rx, _pin_tx, false); _serial->enableIntTx(false); _serial->begin(9600); _serial->enableRx(true);