未验证 提交 285e8986 编写于 作者: J Jan Procházka 提交者: GitHub

fixed 1bit mode duty (#7079)

上级 236e8f31
......@@ -89,7 +89,7 @@ void ledcWrite(uint8_t chan, uint32_t duty)
//Fixing if all bits in resolution is set = LEDC FULL ON
uint32_t max_duty = (1 << channels_resolution[chan]) - 1;
if(duty == max_duty){
if((duty == max_duty) && (max_duty != 1)){
duty = max_duty + 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册