Skip to content

Commit

Permalink
Fix ZCd issue at startup
Browse files Browse the repository at this point in the history
(cherry picked from commit b7fc115a6fa011fda27197a4231dce99254da8df)
  • Loading branch information
mathieucarbou committed Jun 25, 2024
1 parent 6c7eea5 commit 8cae83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MycilaDimmer/MycilaZCD.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Mycila {

gpio_num_t getPin() const { return _pin; }
bool isEnabled() const { return _enabled; }
bool isConnected() const { return getLastPulseWidth() > 0; }
bool isConnected() const { return getFrequency() > 0; }

// in microseconds
// 50Hz => 10000
Expand Down

0 comments on commit 8cae83a

Please sign in to comment.