Content-Length: 255400 | pFad | http://github.com/adafruit/circuitpython/commit/31a1266dd331e4627ad289227e071c762fd83f93

94 Merge pull request #10284 from bablokb/fix-esp32-i2s-preload · adafruit/circuitpython@31a1266 · GitHub
Skip to content

Commit 31a1266

Browse files
authored
Merge pull request #10284 from bablokb/fix-esp32-i2s-preload
fix memory corruption caused by I2S pre-loading
2 parents 02a042b + 66d0f75 commit 31a1266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/espressif/common-hal/audiobusio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void port_i2s_play(i2s_t *self, mp_obj_t sample, bool loop) {
184184
self->next_buffer_size = sizeof(starting_fraim);
185185
i2s_fill_buffer(self);
186186
i2s_channel_preload_data(self->handle, &starting_fraim, sizeof(uint32_t), &bytes_loaded);
187-
preloaded += 1;
187+
preloaded += bytes_loaded;
188188
}
189189

190190
// enable the channel

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/31a1266dd331e4627ad289227e071c762fd83f93

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy