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 |
} |
|
// ----------------------------------------------------------------------- |