Zero_Timer bug.

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
smp
 
Posts: 52
Joined: Tue Dec 18, 2018 4:40 pm

Zero_Timer bug.

Post by smp »

Couldn't find any more appropriate place to put this...

Found (what I believe to be) a bug in the Zero_Timer-master code:

***************
*** 442,449 ****
return false;

_pwm_channel[channum].enabled = true;
! _pwm_channel[channum].pin_out = pin;
_pwm_channel[channum].pin_mux = pinmux;
}

// re-init
--- 454,467 ----
return false;

_pwm_channel[channum].enabled = true;
! _pwm_channel[channum].pin_out = pinout;
_pwm_channel[channum].pin_mux = pinmux;

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Zero_Timer bug.

Post by adafruit_support_mike »

I'll have the folks who handle that library check it out. Thanks!

To help them along, what problem does the existing code cause, and how does the patch above fix it?

User avatar
smp
 
Posts: 52
Joined: Tue Dec 18, 2018 4:40 pm

Re: Zero_Timer bug.

Post by smp »

I haven't even gotten it to work yet, but if you read the code in that routine from top to bottom its obvious.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”