yangzy
Joined: 11 Oct 2007 Posts: 1
|
|
Posted: Thu Oct 11, 2007 11:20 pm |
|
|
hi Mark,
I found a bug in your code:
// Handles all our switch timers
void Switch_Timers(void)
{
int8 i;
if (Read_Switch_Timer == 0)
Read_Switch_Timer--;
else
Read_Switch_Flag = TRUE;
.....
.....
}
It must modify below:
//====================
if (Read_Switch_Timer == 0)
Read_Switch_Flag = TRUE; //<----here
else
Read_Switch_Timer--; //<-----here
//====================
|
|