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.
1 parent 957e810 commit a37bc96Copy full SHA for a37bc96
src/codal_app/microbithal_audio.cpp
@@ -76,11 +76,7 @@ void microbit_hal_audio_select_speaker(bool enable) {
76
77
// Input value has range 0-255 inclusive.
78
void microbit_hal_audio_set_volume(int value) {
79
- if (value >= 255) {
80
- uBit.audio.setVolume(128);
81
- } else {
82
- uBit.audio.setVolume(value / 2);
83
- }
+ uBit.audio.setVolume(value);
84
}
85
86
void microbit_hal_sound_synth_callback(int event) {
0 commit comments