unlock keyboard on release
[rigol] / usbtmc.c
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