Skip to content

Commit

Permalink
power meter serial SDM: whitespace/style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen committed Dec 15, 2024
1 parent a37b012 commit a37fd0b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/PowerMeterSerialSdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ bool PowerMeterSerialSdm::init()

_upSdmSerial = std::make_unique<SoftwareSerial>();

if (pin.powermeter_rxen > -1 && pin.powermeter_txen > -1){
if (pin.powermeter_rxen > -1 && pin.powermeter_txen > -1) {
_upSdm = std::make_unique<SDM>(*_upSdmSerial, 9600, pin.powermeter_rxen, pin.powermeter_txen,
SWSERIAL_8N1, pin.powermeter_rx, pin.powermeter_tx);
}
else
{
else {
_upSdm = std::make_unique<SDM>(*_upSdmSerial, 9600, pin.powermeter_dere,
SWSERIAL_8N1, pin.powermeter_rx, pin.powermeter_tx);
}

_upSdm->begin();

return true;
Expand Down

0 comments on commit a37fd0b

Please sign in to comment.