Skip to content

Commit

Permalink
Fix Invalid pin: 255
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 19, 2024
1 parent b2ac5ef commit f69e589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MycilaDimmer/MycilaDimmer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ void Mycila::Dimmer::end() {
_enabled = false;
_duty = 0;
_dimmer->turnOff();
digitalWrite(_pin, LOW);
delete _dimmer;
_dimmer = nullptr;
_pin = GPIO_NUM_NC;
digitalWrite(_pin, LOW);
}
}

Expand Down

0 comments on commit f69e589

Please sign in to comment.