rigol-ds: apply :KEY:LOCK DISABLE only to DS1K

This commit is contained in:
Aurelien Jacobs 2014-02-02 21:46:20 +01:00 committed by Uwe Hermann
parent 3918fbb0cf
commit 6e94eb4142
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ static int dev_close(struct sr_dev_inst *sdi)
scpi = sdi->conn; scpi = sdi->conn;
devc = sdi->priv; 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"); rigol_ds_config_set(sdi, ":KEY:LOCK DISABLE");
if (scpi) { if (scpi) {