Merge pull request #20 from vinz6751/add-missing-codec_wait-in-codec_set_volume

Add missing codec wait
This commit is contained in:
pweingar 2021-11-22 18:21:39 -05:00 committed by GitHub
commit f6581e5a65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,8 +42,9 @@ void codec_set_volume(unsigned char vol) {
volume = vol;
*CODEC = 0x0A00 | (0xFF - (vol & 0xFF));
*CODEC = 0x0400 | ((vol >> 1) & 0xff);
codec_wait();
*CODEC = 0x0400 | ((vol >> 1) & 0xff);
codec_wait();
}