Does abs function can not effect on unsigned long type ?
BOOL bSameTime = (abs(ulData1 - ulData2) > 2) ? FALSE : TRUE;
warning : taking the absolute value of unsigned type 'unsigned long' has no effect.
View all questions in Keil forum