Browse Source

Fix PZEM004TSensor pointer use

rules-rpn
Max Prokhorov 5 years ago
committed by GitHub
parent
commit
3d8c1bc5d3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/sensors/PZEM004TSensor.h

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

@ -248,7 +248,7 @@ class PZEM004TSensor : public BaseSensor {
// Clear buffer in case of late response(Timeout) // Clear buffer in case of late response(Timeout)
if (_serial) { if (_serial) {
while(_serial.available() > 0) _serial.read();
while(_serial->available() > 0) _serial->read();
} else { } else {
// This we cannot do it from outside the library // This we cannot do it from outside the library
} }


Loading…
Cancel
Save