Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 939 → Rev 940

/branches/V0.70d Code Redesign killagreg/timer0.c
165,13 → 165,13
// -----------------------------------------------------------------------
uint16_t SetDelay (uint16_t t)
{
return(CountMilliseconds + t + 1);
return(CountMilliseconds + t - 1);
}
 
// -----------------------------------------------------------------------
int8_t CheckDelay(uint16_t t)
{
return(((t - CountMilliseconds) & 0x8000) >> 9); // check sign bit
return(((t - CountMilliseconds) & 0x8000) >> 8); // check sign bit
}
 
// -----------------------------------------------------------------------