[riot-notifications] [RIOT-OS/RIOT] cpu/esp8266: fix pwm_set func (#10982)

Gunar Schorcht notifications at github.com
Wed Jun 26 14:50:08 CEST 2019


gschorcht commented on this pull request.



> @@ -203,8 +203,12 @@ void pwm_set(pwm_t pwm, uint8_t channel, uint16_t value)
 
     next_off = next_on + value;
 
-    next_on = (_pwm_dev.cycles < next_on) ? next_on : next_on + _pwm_dev.res;
-    next_off = (_pwm_dev.cycles < next_off) ? next_off : next_off + _pwm_dev.res;
+    if (_pwm_dev.cycles < next_on) {

:confused: Of course, sorry changed it between two other tasks. Fixed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10982#discussion_r297646478
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190626/08a711ba/attachment-0001.html>


More information about the notifications mailing list