From b131d433f9b984b50266298be6f0cf7f9a13b6fb Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 6 Jun 2010 19:55:48 +0200 Subject: [PATCH] unlock keyboard on release --- rigol.c | 3 --- usbtmc.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.39.5