8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25e694e + 61bb6ed commit 9d2d2edCopy full SHA for 9d2d2ed
cpp_utils/PWM.cpp
@@ -150,5 +150,5 @@ void PWM::setFrequency(uint32_t freq) {
150
* @return N/A.
151
*/
152
void PWM::stop(bool idleLevel) {
153
- ESP_ERROR_CHECK(::ledc_stop(LEDC_HIGH_SPEED_MODE, m_channel, idleLevel));
+ ESP_ERROR_CHECK(::ledc_stop(LEDC_HIGH_SPEED_MODE, m_channel, idleLevel ? 1 : 0));
154
} // stop
0 commit comments