]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: apply :KEY:LOCK DISABLE only to DS1K
authorAurelien Jacobs <redacted>
Sun, 2 Feb 2014 20:46:20 +0000 (21:46 +0100)
committerUwe Hermann <redacted>
Fri, 7 Feb 2014 17:53:04 +0000 (18:53 +0100)
hardware/rigol-ds/api.c

index ae14f067d3d1e2d2284009be4bdc3ba581573241..706391f4c3bf4d027693cceb37bf2dc75aabb4c6 100644 (file)
@@ -488,7 +488,7 @@ static int dev_close(struct sr_dev_inst *sdi)
        scpi = sdi->conn;
        devc = sdi->priv;
 
-       if (devc->model->series->protocol >= PROTOCOL_V2)
+       if (devc->model->series->protocol == PROTOCOL_V2)
                rigol_ds_config_set(sdi, ":KEY:LOCK DISABLE");
 
        if (scpi) {