libsigrok/hardware
Uwe Hermann e8bd58ffd2 sr: fx2lafw: Fix a firmware upload bug on 32bit systems.
The glib GTimeVal data type (and some functions using it) will be faded
out from glib sooner or later, so it's not a good idea to use them anyway.

In this specific case GTimeVal.tv_sec was overflowing, leading a check in
libsigrok to fail, and thus to FX2 firmware upload errors, i.e.
non-working fx2lafw devices.

  http://thread.gmane.org/gmane.comp.debugging.sigrok.devel/166

The root cause is that GTimeVal.tv_sec is a 'glong' (8 bytes on 64bit
systems, but only 4 on 32bit systems).

We now use an int64_t (and g_get_monotonic_time() instead of the more
problematics g_get_current_time() which uses a GTimeVal).

This has been verified to fix the issue on a 32bit system.

Other uses of GTimeVal in libsigrok will be removed in a later release.

Also, drop unneeded GTV_TO_MSEC.
2012-05-30 09:30:18 +02:00
..
alsa sr: s/err/ret/ for consistency. 2012-03-21 23:20:06 +01:00
asix-sigma sr: We support both SIGMA and SIGMA2. 2012-05-03 01:41:02 +02:00
chronovu-la8 sr: Fix some TODOs, improve comments/docs. 2012-03-04 15:10:12 +01:00
common sr: Deleted the saleae-logic driver, fx2lafw has superceded it. 2012-04-19 00:12:22 +02:00
demo sr: don't use deprecated glib functions 2012-04-23 15:31:41 +02:00
fx2lafw sr: fx2lafw: Fix a firmware upload bug on 32bit systems. 2012-05-30 09:30:18 +02:00
link-mso19 sr: Fix some samplerate fields. 2012-03-24 22:32:47 +01:00
openbench-logic-sniffer ols: fixed *ctx null dereferences that would SEGFAULT on probing for a OLS or attempting to read from it. 2012-03-08 22:27:33 -08:00
zeroplus-logic-cube sr: zeroplus: Fix segfault, add debug output. 2012-04-26 23:18:05 +02:00
Makefile.am sr: Deleted the saleae-logic driver, fx2lafw has superceded it. 2012-04-19 00:12:22 +02:00