rigol-ds: Disable key lock when closing device.

This commit is contained in:
Martin Ling 2014-01-21 16:51:01 +00:00 committed by Bert Vermeulen
parent 933e63a13b
commit 22c196883d
1 changed files with 5 additions and 0 deletions

View 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)