Skip to content

Commit

Permalink
Merge pull request #74 from mcspr/patch-1
Browse files Browse the repository at this point in the history
Fix swserial typo
  • Loading branch information
olehs authored Apr 23, 2021
2 parents e9d3039 + 4c5ff89 commit e2116c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PZEM004T.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
PZEM004T::PZEM004T(uint8_t receivePin, uint8_t transmitPin)
{
SoftwareSerial *swserial = new SoftwareSerial(receivePin, transmitPin);
port->begin(PZEM_BAUD_RATE);
swserial->begin(PZEM_BAUD_RATE);
this->serial = swserial;
this->_isSoft = true;
}
Expand Down

0 comments on commit e2116c6

Please sign in to comment.