|
Re: Interrupt issue with new code
Quote:
Originally Posted by billbo911
I think you are right. The error looks simple to me as well. I think the reason you aren't seeing the count change is because the code in your ISR to do the increment/decrement is commented out. It looks like it should work correctly if the whack whacks and whack star and star whacks were removed.
Code:
void Encoder_One_Tick(void)
{
//if (ENCODER_ONE_DIRECTION)
//{
_countOne ++;
/*}
else
{
_countOne --;
}*/
}
|
I commented that out when I realized I was having issues. The Bolded line is not commented out.
__________________
Eric Haskins KC9JVH
|