demo: Fix square pattern output shorter than other patterns.

This commit is contained in:
Aurelien Jacobs 2014-11-17 11:40:22 +01:00 committed by Bert Vermeulen
parent c6dde8125a
commit 3772c04990
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ static void generate_analog_pattern(struct analog_gen *ag, uint64_t sample_rate)
if (i % 5 == 0)
value = -value;
if (i % 10 == 0)
last_end = i - 1;
last_end = i;
ag->pattern_data[i] = value;
}
ag->num_samples = last_end;