From d50725e0126a5d52d97e7ea49e37c66c15108156 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 14 Feb 2015 19:08:39 +0100 Subject: [PATCH] rigol-ds: Add missing 20/50/100V vdiv entries. These are available on e.g. Rigol DS1102E (or "upgraded" DS1052E). Without this, if one of the channels happens to have been set to one of the missing vdiv settings frontends (e.g. PulseView) will have some trouble using the scope: sr: hwdriver: sr_config_get(): key 30012 (vdiv) sdi 0x11bcb70 cg CH1 sr: rigol-ds: Negative vdiv index: -1. std::exception --- src/hardware/rigol-ds/api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index d748e6d4..3ce237d7 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -113,6 +113,9 @@ static const uint64_t vdivs[][2] = { { 2, 1 }, { 5, 1 }, { 10, 1 }, + { 20, 1 }, + { 50, 1 }, + { 100, 1 }, }; #define NUM_TIMEBASE ARRAY_SIZE(timebases)