smoothing out the edges and bugs
This commit is contained in:
parent
f3a619decc
commit
67e4b2382b
3 changed files with 75 additions and 36 deletions
|
@ -163,13 +163,6 @@ main(void)
|
|||
|
||||
while (true) {
|
||||
|
||||
read = scope_in.readable();
|
||||
read = (read <= sizeof(s)/sizeof(*s)) ? read :
|
||||
sizeof(s)/sizeof(*s);
|
||||
|
||||
scope_in.ImmediateRead(s, read);
|
||||
|
||||
scope.sample(s, read);
|
||||
|
||||
switch (scope.state()) {
|
||||
case osclsk_scope::osc_state::SAMPLE_DONE:
|
||||
|
@ -188,6 +181,13 @@ main(void)
|
|||
break;
|
||||
}
|
||||
|
||||
read = scope_in.readable();
|
||||
read = (read <= sizeof(s)/sizeof(*s)) ? read :
|
||||
sizeof(s)/sizeof(*s);
|
||||
scope_in.ImmediateRead(s, read);
|
||||
scope.sample(s, read);
|
||||
|
||||
|
||||
// if (--load_tick == 0) {
|
||||
// load_tick = LOAD_METER_TICKS;
|
||||
// // get the current load (smoothed value and peak values)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue