8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e3b363 + c9946df commit d154d11Copy full SHA for d154d11
ports/nrf/common-hal/audiobusio/I2SOut.c
@@ -139,14 +139,14 @@ static void i2s_buffer_fill(audiobusio_i2sout_obj_t* self) {
139
uint16_t *bp = (uint16_t*)buffer;
140
uint16_t *be = (uint16_t*)(buffer + bytecount);
141
uint16_t *sp = (uint16_t*)self->sample_data;
142
- for (; bp != be; bp++) {
+ for (; bp < be;) {
143
*bp++ = *sp++ + 0x8000;
144
}
145
} else {
146
uint8_t *bp = (uint8_t*)buffer;
147
uint8_t *be = (uint8_t*)(buffer + bytecount);
148
uint8_t *sp = (uint8_t*)self->sample_data;
149
150
*bp++ = *sp++ + 0x80;
151
152
0 commit comments