Permalink
Browse files

plugins/collie.c,plugins/corgi.c: Apply patch from Richard Purdie to

fix the microseconds field of the timeval struct, as it was
inadvertantly holding milliseconds.
  • Loading branch information...
1 parent cad153a commit d7f5daef659a95bc4617c087efc8d8e3684db672 @kergoth committed Aug 16, 2006
Showing with 8 additions and 2 deletions.
  1. +6 −0 ChangeLog
  2. +1 −1 plugins/collie-raw.c
  3. +1 −1 plugins/corgi-raw.c
View
@@ -1,3 +1,9 @@
+2006-08-16 Chris Larson <clarson@kergoth.com>
+
+ * plugins/collie.c,plugins/corgi.c: Apply patch from Richard Purdie to
+ fix the microseconds field of the timeval struct, as it was
+ inadvertantly holding milliseconds.
+
2005-03-01 Chris Larson <kergoth@handhelds.org>
* src/tslib-filter.h: BUGFIX: make the symbol used by the plugins,
View
@@ -29,7 +29,7 @@ static int collie_read(struct tslib_module_info *inf, struct ts_sample *samp, in
#ifdef DEBUG
fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure);
#endif /*DEBUG*/
- samp->tv.tv_usec = collie_evt->millisecs % 1000;
+ samp->tv.tv_usec = (collie_evt->millisecs % 1000) * 1000;
samp->tv.tv_sec = collie_evt->millisecs / 1000;
samp++;
collie_evt++;
View
@@ -29,7 +29,7 @@ static int corgi_read(struct tslib_module_info *inf, struct ts_sample *samp, int
#ifdef DEBUG
fprintf(stderr,"RAW---------------------------> %d %d %d\n",samp->x,samp->y,samp->pressure);
#endif /*DEBUG*/
- samp->tv.tv_usec = corgi_evt->millisecs % 1000;
+ samp->tv.tv_usec = (corgi_evt->millisecs % 1000) * 1000;
samp->tv.tv_sec = corgi_evt->millisecs / 1000;
samp++;
corgi_evt++;

0 comments on commit d7f5dae

Please sign in to comment.