From: Guido Trentalancia Date: Fri, 16 Nov 2018 17:47:15 +0000 (+0100) Subject: hameg-hmo: When setting slope, also set trigger type to edge. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c8ecfa6ea483e53f2ea735bc58ba93d4eac6b4f6;p=libsigrok.git hameg-hmo: When setting slope, also set trigger type to edge. When setting the type of slope for the edge trigger function, also set the trigger type to edge because it is not necessarily configured that way and therefore such functionality might fail to work properly! This fixes parts of bug #1328. --- diff --git a/src/hardware/hameg-hmo/protocol.c b/src/hardware/hameg-hmo/protocol.c index b00574bc..933432de 100644 --- a/src/hardware/hameg-hmo/protocol.c +++ b/src/hardware/hameg-hmo/protocol.c @@ -45,7 +45,7 @@ static const char *hameg_scpi_dialect[] = { [SCPI_CMD_GET_DIG_POD_STATE] = ":POD%d:STAT?", [SCPI_CMD_SET_DIG_POD_STATE] = ":POD%d:STAT %d", [SCPI_CMD_GET_TRIGGER_SLOPE] = ":TRIG:A:EDGE:SLOP?", - [SCPI_CMD_SET_TRIGGER_SLOPE] = ":TRIG:A:EDGE:SLOP %s", + [SCPI_CMD_SET_TRIGGER_SLOPE] = ":TRIG:A:TYPE EDGE;:TRIG:A:EDGE:SLOP %s", [SCPI_CMD_GET_TRIGGER_SOURCE] = ":TRIG:A:SOUR?", [SCPI_CMD_SET_TRIGGER_SOURCE] = ":TRIG:A:SOUR %s", [SCPI_CMD_GET_DIG_CHAN_STATE] = ":LOG%d:STAT?",