Browse Source

Reduce buffer size of EspSoftwareSerial instances

i18n
Xose Pérez 7 years ago
parent
commit
7b07b2bec6
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      code/espurna/sensors/MHZ19Sensor.h
  2. +1
    -1
      code/espurna/sensors/PMSX003Sensor.h
  3. +1
    -1
      code/espurna/sensors/V9261FSensor.h

+ 1
- 1
code/espurna/sensors/MHZ19Sensor.h View File

@ -76,7 +76,7 @@ class MHZ19Sensor : public BaseSensor {
if (_serial) delete _serial;
_serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 256);
_serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 32);
_serial->begin(9600);
calibrateAuto(false);


+ 1
- 1
code/espurna/sensors/PMSX003Sensor.h View File

@ -67,7 +67,7 @@ class PMSX003Sensor : public BaseSensor {
if (_serial) delete _serial;
if (_pms) delete _pms;
_serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 256);
_serial = new SoftwareSerial(_pin_rx, _pin_tx, false, 32);
_serial->begin(9600);
_pms = new PMS(* _serial);
_pms->passiveMode();


+ 1
- 1
code/espurna/sensors/V9261FSensor.h View File

@ -65,7 +65,7 @@ class V9261FSensor : public BaseSensor {
if (_serial) delete _serial;
_serial = new SoftwareSerial(_pin_rx, SW_SERIAL_UNUSED_PIN, _inverted, 256);
_serial = new SoftwareSerial(_pin_rx, SW_SERIAL_UNUSED_PIN, _inverted, 32);
_serial->begin(V9261F_BAUDRATE);
}


Loading…
Cancel
Save