]> sigrok.org Git - libsigrok.git/commitdiff
hameg-hmo: Add missing quotes for SCPI_CMD_SET_TRIGGER_PATTERN.
authorGuido Trentalancia <redacted>
Sat, 1 Dec 2018 21:45:26 +0000 (22:45 +0100)
committerUwe Hermann <redacted>
Thu, 25 Jul 2019 22:11:07 +0000 (00:11 +0200)
src/hardware/hameg-hmo/protocol.c

index 20c3a396b284683e0f395ca631415f50a8cef2e7..a476e32e207156864c758fc7beb45cb6c78658c6 100644 (file)
@@ -48,7 +48,7 @@ static const char *hameg_scpi_dialect[] = {
        [SCPI_CMD_GET_TRIGGER_PATTERN]        = ":TRIG:A:PATT:SOUR?",
        [SCPI_CMD_SET_TRIGGER_PATTERN]        = ":TRIG:A:TYPE LOGIC;" \
                                                ":TRIG:A:PATT:FUNC AND;" \
-                                               ":TRIG:A:PATT:COND TRUE;" \
+                                               ":TRIG:A:PATT:COND \"TRUE\";" \
                                                ":TRIG:A:PATT:MODE OFF;" \
                                                ":TRIG:A:PATT:SOUR \"%s\"",
        [SCPI_CMD_GET_TRIGGER_SOURCE]         = ":TRIG:A:SOUR?",
@@ -85,7 +85,7 @@ static const char *rohde_schwarz_log_not_pod_scpi_dialect[] = {
        [SCPI_CMD_GET_TRIGGER_PATTERN]        = ":TRIG:A:PATT:SOUR?",
        [SCPI_CMD_SET_TRIGGER_PATTERN]        = ":TRIG:A:TYPE LOGIC;" \
                                                ":TRIG:A:PATT:FUNC AND;" \
-                                               ":TRIG:A:PATT:COND TRUE;" \
+                                               ":TRIG:A:PATT:COND \"TRUE\";" \
                                                ":TRIG:A:PATT:MODE OFF;" \
                                                ":TRIG:A:PATT:SOUR \"%s\"",
        [SCPI_CMD_GET_TRIGGER_SOURCE]         = ":TRIG:A:SOUR?",