Browse Source

start-up sound working, removes tick with some devices

Jack Humbert 9 năm trước cách đây
mục cha
commit
157ddccc2c

+ 1 - 1
keyboard/preonic/keymaps/default/keymap.c

@@ -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();
 }
 

+ 2 - 1
tmk_core/common/avr/suspend.c

@@ -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