From: Aurelien Jacobs Date: Sun, 2 Feb 2014 20:46:20 +0000 (+0100) Subject: rigol-ds: apply :KEY:LOCK DISABLE only to DS1K X-Git-Tag: libsigrok-0.3.0~159 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6e94eb4142c59a92db4e6db3e715607aed30cda9;p=libsigrok.git rigol-ds: apply :KEY:LOCK DISABLE only to DS1K --- diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index ae14f067..706391f4 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -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) {