From: Erik Montnemery Date: Thu, 18 Aug 2016 21:05:11 +0000 (+0200) Subject: hantek-6xxx: Ignore requests to set Hantek 6022BE coupling. X-Git-Tag: libsigrok-0.5.0~277 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=817b7441a1f31788a53f39af7c2f1e08f9de25b2;hp=817b7441a1f31788a53f39af7c2f1e08f9de25b2;p=libsigrok.git hantek-6xxx: Ignore requests to set Hantek 6022BE coupling. Here's a patch to "Ignore requests to set coupling for the Hantek 6022BE", this clears the LIBUSB errors for me. Also in the patch: - There is a crash because config_list() can be called with sdi == NULL. This can be reproduced by doing: "sigrok-cli.exe --driver hantek-6xxx --show" - There seems to be a very unsafe loop in config_set() when setting COUPLING; the coupling vector is assumed to be zero terminated, but is not declared as such. Note: The same issue is present also for other hardware, at least for hantek-dso/api.c. The patch is only for hantek-6xxx though. ---