Merge pull request #20 from vinz6751/add-missing-codec_wait-in-codec_set_volume
Add missing codec wait
This commit is contained in:
commit
f6581e5a65
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue