From: Michael Gernoth Date: Sun, 6 Jun 2010 17:55:48 +0000 (+0200) Subject: unlock keyboard on release X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/commitdiff_plain/b131d433f9b984b50266298be6f0cf7f9a13b6fb unlock keyboard on release --- diff --git a/rigol.c b/rigol.c index 5dfec41..3386fbf 100644 --- a/rigol.c +++ b/rigol.c @@ -163,9 +163,6 @@ int main(int argc, char **argv) } free (scpi); } - //Disable keylock, so the user doesn't have to press the 'force'-button - l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); - usbtmc_release(sc); usbtmc_close(sc); return 0; diff --git a/usbtmc.c b/usbtmc.c index 8d05b09..054e49c 100644 --- a/usbtmc.c +++ b/usbtmc.c @@ -110,6 +110,8 @@ void usbtmc_claim(usb_dev_handle *sc) void usbtmc_release(usb_dev_handle *sc) { + //Disable keylock, so the user doesn't have to press the 'force'-button + usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); usb_release_interface(sc, 0); }