fix the bounds on the oscilloscope again

This commit is contained in:
scratchminer 2024-01-22 12:10:54 -05:00
parent 606ef1e410
commit b499be6568

View file

@ -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;