stm32-f4discovery-cc256x: fix buffer swapping in modplayer

This commit is contained in:
Matthias Ringwald 2017-07-15 21:29:32 +02:00
parent dad8eff978
commit 139f0ea75c

View File

@ -46,7 +46,7 @@ void mod_player(void){
__asm__("wfe");
}
hxcmod_fillbuffer(&mod_context, (unsigned short *) &audio_samples1[0], NUM_SAMPLES, NULL);
while (active_buffer == 0){
while (active_buffer == 1){
__asm__("wfe");
}
}