]> sigrok.org Git - libsigrok.git/commitdiff
demo: Bring analog square wave amplitude into line with other patterns.
authorBert Vermeulen <redacted>
Wed, 15 Jan 2014 00:51:04 +0000 (01:51 +0100)
committerBert Vermeulen <redacted>
Fri, 17 Jan 2014 13:36:00 +0000 (14:36 +0100)
hardware/demo/demo.c
hwdriver.c

index cf82630adfca221cd73be987e85a611f3c2da439..b5b0d786c064b9081089528d139ea0cbe7abfd16 100644 (file)
@@ -192,7 +192,7 @@ static void generate_analog_pattern(const struct sr_probe_group *probe_group, ui
 
        switch (ag->pattern) {
        case PATTERN_SQUARE:
-               value = 5.0;
+               value = ANALOG_AMPLITUDE;
                last_end = 0;
                for (i = 0; i < num_samples; i++) {
                        if (i % 5 == 0)
index 557181176009bce2c2265f9b95011ba37ea618ad..048450001b1f4196c4c0d13c6648ce7e09cd98ea 100644 (file)
@@ -53,7 +53,7 @@ static struct sr_config_info sr_config_info_data[] = {
        {SR_CONF_CAPTURE_RATIO, SR_T_UINT64, "captureratio",
                "Pre-trigger capture ratio", NULL},
        {SR_CONF_PATTERN_MODE, SR_T_CHAR, "pattern",
-               "Pattern generator mode", NULL},
+               "Pattern", NULL},
        {SR_CONF_TRIGGER_TYPE, SR_T_CHAR, "triggertype",
                "Trigger types", NULL},
        {SR_CONF_EXTERNAL_CLOCK, SR_T_BOOL, "external_clock",