fix the bounds on the oscilloscope again
This commit is contained in:
parent
606ef1e410
commit
b499be6568
|
@ -85,10 +85,10 @@ void DivPlatformPowerNoise::acquire(short** buf, size_t len) {
|
||||||
pwrnoise_step(&pn, &left, &right);
|
pwrnoise_step(&pn, &left, &right);
|
||||||
}
|
}
|
||||||
|
|
||||||
oscBuf[0]->data[oscBuf[0]->needle++]=mapAmp(pn.n1.out_latch);
|
oscBuf[0]->data[oscBuf[0]->needle++]=mapAmp(((pn.n1.out_latch>>1)&0x7)+(pn.n1.out_latch>>5));
|
||||||
oscBuf[1]->data[oscBuf[1]->needle++]=mapAmp(pn.n2.out_latch);
|
oscBuf[1]->data[oscBuf[1]->needle++]=mapAmp(((pn.n2.out_latch>>1)&0x7)+(pn.n2.out_latch>>5));
|
||||||
oscBuf[2]->data[oscBuf[2]->needle++]=mapAmp(pn.n3.out_latch);
|
oscBuf[2]->data[oscBuf[2]->needle++]=mapAmp(((pn.n3.out_latch>>1)&0x7)+(pn.n3.out_latch>>5));
|
||||||
oscBuf[3]->data[oscBuf[3]->needle++]=mapAmp(pn.s.out_latch);
|
oscBuf[3]->data[oscBuf[3]->needle++]=mapAmp(((pn.s.out_latch>>1)&0x7)+(pn.s.out_latch>>5));
|
||||||
|
|
||||||
buf[0][h] = left;
|
buf[0][h] = left;
|
||||||
buf[1][h] = right;
|
buf[1][h] = right;
|
||||||
|
|
Loading…
Reference in a new issue