demo: Bring analog square wave amplitude into line with other patterns.

This commit is contained in:
Bert Vermeulen 2014-01-15 01:51:04 +01:00
parent 9f54e0e84f
commit 2438b737ae
2 changed files with 2 additions and 2 deletions

View 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)

View 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",