Skip to content

Commit

Permalink
fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminius committed Sep 23, 2024
1 parent 5ac0fa0 commit 40856f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/SdmEnergyMeter/SDM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ void SDM::begin(void) {
if (_swapuart)
sdmSer.swap();
#endif
if (_dere_pin != NOT_A_PIN)
{
if (_dere_pin != NOT_A_PIN) {
pinMode(_dere_pin, OUTPUT); //set output pin mode for DE/RE pin when used (for control MAX485)
}
if (_re_pin != NOT_A_PIN)
{
if (_re_pin != NOT_A_PIN) {
pinMode(_re_pin, OUTPUT); // set output pin mode /RE pin when used (for control MAX485)
}
dereSet(LOW); //set init state to receive from SDM -> DE Disable, /RE Enable (for control MAX485)
Expand Down

0 comments on commit 40856f0

Please sign in to comment.