Browse Source

Update ESPSoftwareSerial using new enableIntTx method

rfm69
Xose Pérez 6 years ago
parent
commit
eafd333ef5
4 changed files with 4 additions and 1 deletions
  1. +1
    -0
      code/espurna/sensors/MHZ19Sensor.h
  2. +1
    -0
      code/espurna/sensors/PMSX003Sensor.h
  3. +1
    -0
      code/espurna/sensors/V9261FSensor.h
  4. +1
    -1
      code/platformio.ini

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

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


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

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


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

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


+ 1
- 1
code/platformio.ini View File

@ -16,7 +16,7 @@ lib_deps =
Brzo I2C Brzo I2C
https://bitbucket.org/xoseperez/debounceevent.git#2.0.1 https://bitbucket.org/xoseperez/debounceevent.git#2.0.1
Embedis Embedis
https://github.com/krosk93/espsoftwareserial#a770677
https://github.com/plerup/espsoftwareserial#7077979
https://github.com/me-no-dev/ESPAsyncTCP#a57560d https://github.com/me-no-dev/ESPAsyncTCP#a57560d
https://github.com/me-no-dev/ESPAsyncWebServer#313f337 https://github.com/me-no-dev/ESPAsyncWebServer#313f337
https://bitbucket.org/xoseperez/fauxmoesp.git#2.4.2 https://bitbucket.org/xoseperez/fauxmoesp.git#2.4.2


Loading…
Cancel
Save