From: johann d. <jd...@us...> - 2002-02-12 21:54:01
|
Update of /cvsroot/linuxconsole/ruby/linux/drivers/input/joystick/iforce In directory usw-pr-cvs1:/tmp/cvs-serv3508 Modified Files: iforce.h Log Message: Fixed TIME_SCALE. input.h says periods are specified in ms, while iforce.h assumed they were expressed in 1/256th of seconds. Index: iforce.h =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/input/joystick/iforce/iforce.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- iforce.h 3 Feb 2002 19:37:37 -0000 1.9 +++ iforce.h 12 Feb 2002 21:53:58 -0000 1.10 @@ -162,7 +162,7 @@ #define HIFIX80(a) ((unsigned char)(((a)<0? (a)+255 : (a))>>8)) /* Encode a time value */ -#define TIME_SCALE(a) ((a) == 0xffff ? 0xffff : (a) * 1000 / 256) +#define TIME_SCALE(a) (a) /* Public functions */ |