]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Disable key lock when closing device.
authorMartin Ling <redacted>
Tue, 21 Jan 2014 16:51:01 +0000 (16:51 +0000)
committerBert Vermeulen <redacted>
Tue, 21 Jan 2014 16:52:23 +0000 (17:52 +0100)
hardware/rigol-ds/api.c

index 4019316020c93ee5d0a97771d4d0c0c1f6765789..a20dd6594fa070623aa91a5c7091bbe143c0529f 100644 (file)
@@ -481,8 +481,13 @@ static int dev_open(struct sr_dev_inst *sdi)
 static int dev_close(struct sr_dev_inst *sdi)
 {
        struct sr_scpi_dev_inst *scpi;
+       struct dev_context *devc;
 
        scpi = sdi->conn;
+       devc = sdi->priv;
+
+       if (devc->model->series != RIGOL_VS5000)
+               set_cfg(sdi, ":KEY:LOCK DISABLE");
 
        if (scpi) {
                if (sr_scpi_close(scpi) < 0)