Skip to content

Commit fb682ea

Browse files
committed
codal_app/main: Enable speaker by default at start up.
Signed-off-by: Damien George <[email protected]>
1 parent cac1c0c commit fb682ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codal_app/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ int main() {
7070

7171
uBit.display.setBrightness(255);
7272

73-
// By default there is no audio output selected. The audio system will select the
74-
// correct pin and/or speaker when any audio related code is first executed.
73+
// By default the speaker is enabled but no pin is selected. The audio system will
74+
// select the correct pin when any audio related code is first executed.
75+
uBit.audio.setSpeakerEnabled(true);
7576
uBit.audio.setPinEnabled(false);
76-
uBit.audio.setSpeakerEnabled(false);
7777

7878
mp_main();
7979
return 0;

0 commit comments

Comments
 (0)