demo: Fix square pattern output shorter than other patterns.
This commit is contained in:
parent
c6dde8125a
commit
3772c04990
|
@ -202,7 +202,7 @@ static void generate_analog_pattern(struct analog_gen *ag, uint64_t sample_rate)
|
||||||
if (i % 5 == 0)
|
if (i % 5 == 0)
|
||||||
value = -value;
|
value = -value;
|
||||||
if (i % 10 == 0)
|
if (i % 10 == 0)
|
||||||
last_end = i - 1;
|
last_end = i;
|
||||||
ag->pattern_data[i] = value;
|
ag->pattern_data[i] = value;
|
||||||
}
|
}
|
||||||
ag->num_samples = last_end;
|
ag->num_samples = last_end;
|
||||||
|
|
Loading…
Reference in New Issue