]> git.zerfleddert.de Git - rigol/commitdiff
unlock keyboard on release
authorMichael Gernoth <michael@gernoth.net>
Sun, 6 Jun 2010 17:55:48 +0000 (19:55 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 6 Jun 2010 17:55:48 +0000 (19:55 +0200)
rigol.c
usbtmc.c

diff --git a/rigol.c b/rigol.c
index 5dfec41cea9e586491cd021a272983d625331a7e..3386fbfd46527fa4854afe5184e162a1085c3db6 100644 (file)
--- 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;
index 8d05b099ab2fdd91c6ce7f377e4f9ad43de60497..054e49c0dc26526f288b852a04c220ac04116474 100644 (file)
--- 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);
 }
 
Impressum, Datenschutz