Uwe Hermann
eac0c61327
rigol-ds: Drop unneeded check of g_strdup_printf() result.
2015-04-08 19:14:05 +02:00
Uwe Hermann
2d31e8bcbd
configure.ac: Drop unneeded AC_CANONICAL_SYSTEM.
2015-04-08 18:50:07 +02:00
Uwe Hermann
b4aa89de4c
autogen.sh: Drop obsolete MinGW/MSYS items.
...
For Windows builds (which require MinGW-w64) we currently support:
- cross-builds using MXE (mxe.cc) and possibly other cross-compile setups
- native builds using MSYS2 (sf.net/projects/msys2/)
Neither of those require explicitly specifying ACLOCAL_DIR.
2015-04-07 02:35:08 +02:00
Uwe Hermann
fc8f82e965
cxx: Makefile.am: Use libtool's -no-undefined option.
2015-04-07 02:29:09 +02:00
Martin Ling
ff101fca12
windows: Fix building shared library on MinGW.
2015-04-07 02:27:59 +02:00
Uwe Hermann
032da34b78
sr_driver_list() now takes a context pointer.
...
This requires sr_hw_cleanup_all() and sanity_check_all_drivers()
to also take a context.
The (runtime) generation of the driver list now happens in sr_init()
and sr_driver_list() always returns that pre-generated list. This fixes
a segfault when (correctly) invoking multiple sr_init() and sr_exit()
calls with different contexts (caught by the unit tests).
This fixes bug #565 .
2015-04-07 02:09:56 +02:00
Uwe Hermann
07962655ec
link-mso: Eliminate unneeded NUM_CHANNELS.
2015-04-07 02:02:43 +02:00
Uwe Hermann
0f26276329
fx2lafw: Use libusb_error_name() for reporting transfer status.
2015-04-03 21:05:02 +02:00
Uwe Hermann
07ffa5b315
Replace some magic numbers with a #define.
2015-04-01 00:23:25 +02:00
Uwe Hermann
dc89faeace
Reduce unnecessarily high indentation level in some places.
2015-04-01 00:23:25 +02:00
Uwe Hermann
2ea67fc9bf
Minor cosmetics and consistency fixes.
2015-04-01 00:23:25 +02:00
Uwe Hermann
b1f8310376
Don't check g_free() arguments for NULL.
...
The g_free() call is guaranteed to not segfault when NULL is passed.
2015-04-01 00:23:25 +02:00
Uwe Hermann
e742b88f9a
cem-dt-885x: Add a missing break statement.
2015-04-01 00:23:25 +02:00
Uwe Hermann
72d69b7cd1
zeroplus: Add a missing break statement.
...
This fixes a bug when trying to trigger on a channel being 0/low.
2015-04-01 00:23:24 +02:00
Uwe Hermann
2cca921d91
Fix a typo in a for loop (wrong variable).
2015-04-01 00:23:24 +02:00
Uwe Hermann
ce3ecb7049
sysclk-lwla: Use ARRAY_SIZE instead of G_N_ELEMENTS.
...
Both do exactly the same, but we consistently use ARRAY_SIZE
in the rest of the code-base.
2015-03-26 23:53:52 +01:00
Martin Ling
f05406117d
uni-t-dmm: Declare each meter type in only one place.
2015-03-26 23:52:06 +01:00
Uwe Hermann
ca1c21ca3e
unit tests: Update for sr_session_new() API change.
2015-03-26 23:49:35 +01:00
Uwe Hermann
c879dca3d7
bindings/cxx/classes.cpp: Fix sr_session_load() invocation.
2015-03-26 01:02:40 +01:00
Uwe Hermann
60f6b00144
bindings/cxx/classes.cpp: Fix a typo.
2015-03-26 01:02:40 +01:00
Martin Ling
bb5f61105b
Call libusb_get_next_timeout() to get minimum timeout for g_poll().
...
We should have been doing this all along, but we get away with it
on Linux where libusb can do everything with fds, and we get away
with it for many drivers that have a short timeout on their events.
On Windows though, handling this correctly is essential.
Fixes bug #343 .
2015-03-26 01:02:40 +01:00
Martin Ling
4ed5d21d04
Store a context pointer in struct sr_session.
2015-03-26 01:02:40 +01:00
Martin Ling
61e6e2da45
Make sr_session_new() and sr_session_load() require a context.
2015-03-26 01:02:40 +01:00
Uwe Hermann
c72981ac41
Revert "session_file.c: Use config_*() wrappers."
...
This temporarily reverts commit 421bc3eba0
.
We cannot yet use the sr_config_*() wrappers, otherwise loading *.sr
files is broken. A fix is being worked on.
2015-03-24 23:35:29 +01:00
Martin Ling
f6c30de4b0
Initial fix attempt for a thread-related issue on Windows.
...
This is a partial fix for bug #343 , which lead to a large amount of
handles being created, and eventually to a frontend "hang".
It's not yet a "full" fix as some issues are still observable,
but it successfully improves the situation on Windows to the extent
that frontend hangs due to large amounts of handles no longer seem
to happen.
Thanks to Boris Gjenero <boris.gjenero@gmail.com> for the debugging
efforts, testing, and updating of this patch!
Additionally, this seems to also fix a "SysClk LWLA hanging" bug
and apparently not receiving any samples during an acquisition
(tested on an LWLA1034).
This closes bug #328 .
2015-03-24 20:14:04 +01:00
Uwe Hermann
515ab0889e
Various #include file cosmetic fixes.
...
Generally include system headers before local headers, unless there's
a technical reason to use another order.
2015-03-24 19:30:16 +01:00
Uwe Hermann
98fec29ecb
Various NULL-check consistency fixes.
2015-03-24 19:30:16 +01:00
Uwe Hermann
a95f142e88
Some more g_try_*alloc() fixes.
...
As per documented rules in HACKING, we don't check "small" allocations.
2015-03-24 19:30:16 +01:00
Uwe Hermann
1a46cc62e2
Improve readability and clarity of some numbers.
2015-03-24 19:30:16 +01:00
Uwe Hermann
f3f19d1131
Fix a bunch of typos.
2015-03-24 18:01:18 +01:00
Mike Walters
7637cc60ba
Add udev rule for Rigol 1000Z series
2015-03-24 15:54:53 +00:00
Uwe Hermann
8249889dfa
demo: Fix SR_CONF_DEVICE_OPTIONS variant type.
2015-03-22 02:15:31 +01:00
Uwe Hermann
0f34cb4723
Channel names consistency fixes and simplifications.
2015-03-22 02:15:30 +01:00
Uwe Hermann
db24496ac8
Remove unneeded #endif comments.
2015-03-22 02:15:30 +01:00
Uwe Hermann
93b118da4f
Consistency and whitespace fixes for switch statements.
2015-03-22 02:15:30 +01:00
Uwe Hermann
d0148a506e
Make memset() invocations consistent across all files.
2015-03-22 02:15:30 +01:00
Uwe Hermann
0c5f2abc66
Random whitespace and other minor fixes.
2015-03-22 02:15:30 +01:00
Uwe Hermann
421bc3eba0
session_file.c: Use config_*() wrappers.
2015-03-22 02:15:30 +01:00
Uwe Hermann
dcd438ee35
Simplify a few config_set() callbacks.
...
Also, extended logging and random whitespace fixes.
2015-03-22 02:15:30 +01:00
Uwe Hermann
329733d92c
Constify a few arrays and variables.
2015-03-21 20:30:53 +01:00
Uwe Hermann
53cda65a6b
Remove unneeded explicit array size specification.
2015-03-21 19:40:19 +01:00
Uwe Hermann
1beccaed46
Various minor whitespace fixes.
2015-03-21 19:28:54 +01:00
Uwe Hermann
e8be616955
tondaj-sl-814: Add missing SR_PRIV.
2015-03-21 19:01:10 +01:00
Uwe Hermann
145d794fac
serial-dmm: Use g_malloc()/g_free().
2015-03-21 18:46:00 +01:00
Uwe Hermann
c35276dd92
vc870: Fix a compiler warning.
...
src/dmm/vc870.c: In function 'flags_valid':
src/dmm/vc870.c:380:54: warning: unused parameter 'info'
[-Wunused-parameter]
static gboolean flags_valid(const struct vc870_info *info)
2015-03-21 18:43:17 +01:00
Uwe Hermann
1a8639164e
Minor cosmetics, cleanups.
2015-03-21 18:28:02 +01:00
Uwe Hermann
8852eb75d1
serial-dmm: Drop obsolete extern declaration.
2015-03-21 13:17:51 +01:00
Martin Ling
bcbef5ed70
serial-dmm: Declare each meter type in only one place.
2015-03-21 13:13:34 +01:00
Martin Ling
4f840ce965
Pass driver struct pointer to driver callbacks.
...
This lays the groundwork for subdrivers to share callbacks without
needing a separate wrapper function for each subdriver.
2015-03-21 13:09:40 +01:00
Martin Ling
9e60a31fb9
Construct driver array at runtime, from an array of per-file arrays.
...
This lays the groundwork for drivers to define their own array of
subdrivers, rather than having to list each subdriver here.
2015-03-21 13:09:39 +01:00