Error in PWM input IC6 + solution

Here is the place for all your dsPic or autopilot questions.

Moderator: lukasz

Error in PWM input IC6 + solution

Postby pielepee » Wed Jun 13, 2012 3:30 pm

Hi Tom,

I noticed in line 135 in pwm.c, in the _IC6Interrupt() routine, it states the following:
Code: Select all
   if (PORTDbits.RD12 == 0)


which should be:
Code: Select all
   if (PORTDbits.RD13 == 0)

in order to look at port IC6 instead of IC5.

Kind regards,

Peter Tambach
pielepee
 
Posts: 1
Joined: Fri Jun 17, 2011 2:22 pm

Re: Error in PWM input IC6 + solution

Postby Tom » Fri Jun 29, 2012 4:38 pm

Talking about an ugly copy and paste error!

Thanks for letting me know!
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium


Return to Firmware

Who is online

Users browsing this forum: No registered users and 2 guests

cron