Sound update

Dependencies:   4DGL-uLCD-SE Physac-MBED PinDetect SDFileSystem mbed-rtos mbed

Revision:
29:431e5788a313
Parent:
28:bccd14334bb9
Child:
30:4d8aa9229bdd
--- a/main.cpp	Fri Dec 09 20:29:08 2022 +0000
+++ b/main.cpp	Fri Dec 09 20:44:32 2022 +0000
@@ -70,11 +70,11 @@
         speaker.write_u16(tetris[i]);
         i++;
     }
-    if (game2) {
+    else if (game2) {
         speaker.write_u16(air_hockey[j]);
         j++;
     }
-    if (!game1 && !game2) {
+    else {
         speaker.write_u16(mii_menu[k]);
         k++;
     }