Tool/software: TI C/C++ Compiler
Hello,
I have made in my code the following definition (TS_HS_SUB).
This definition is used in the code for a compare with a fixed time of 20 milliseconds.
“if (delay >= ((unsigned short)(20e-3/TS_HS_SUB)) )” should be fulfilled when delay is greater or equal to 20.
But this happens when delay is 19!
What is the reason for this problem?
Thank you very much
Ralf

