0

Zero_Timer bug.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Zero_Timer bug.

by smp on Wed Jun 09, 2021 9:39 am

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;

smp
 
Posts: 50
Joined: Tue Dec 18, 2018 4:40 pm

Re: Zero_Timer bug.

by adafruit_support_mike on Thu Jun 10, 2021 7:41 pm

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?

adafruit_support_mike
 
Posts: 62768
Joined: Thu Feb 11, 2010 2:51 pm

Re: Zero_Timer bug.

by smp on Thu Jun 10, 2021 10:28 pm

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

smp
 
Posts: 50
Joined: Tue Dec 18, 2018 4:40 pm

Please be positive and constructive with your questions and comments.