From 22c196883d50849ac3a6ed3bffa98e43b6155069 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Tue, 21 Jan 2014 16:51:01 +0000 Subject: [PATCH] rigol-ds: Disable key lock when closing device. --- hardware/rigol-ds/api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index 40193160..a20dd659 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -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)