]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
start-up sound working, removes tick with some devices
authorJack Humbert <jack.humb@gmail.com>
Thu, 21 Apr 2016 00:11:05 +0000 (20:11 -0400)
committerJack Humbert <jack.humb@gmail.com>
Thu, 21 Apr 2016 00:11:05 +0000 (20:11 -0400)
keyboard/preonic/keymaps/default/keymap.c
tmk_core/common/avr/suspend.c

index 16f8a8bf188c6973762a1ba5a66719757ebef941..267bfab3d7f786a8d11ece226f6cb3f7e7a1fde6 100644 (file)
@@ -309,7 +309,7 @@ void process_action_user(keyrecord_t *record) {
 }
 
 void matrix_init_user(void) {
-  // audio_init();
+  _delay_ms(10); // gets rid of tick
   play_startup_tone();
 }
 
index e295dbe18bd226e3fa1b1c8eaea215ab37fa1508..4980680198e20775f1a51d8c6d6f0e0a85aaf52a 100644 (file)
@@ -79,7 +79,8 @@ static void power_down(uint8_t wdto)
        led_set(0);
 
        #ifdef AUDIO_ENABLE
-               stop_all_notes();
+        // This sometimes disables the start-up noise, so it's been disabled
+               // stop_all_notes();
        #endif /* AUDIO_ENABLE */
 
     // TODO: more power saving