summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-04-20 20:11:05 -0400
committerJack Humbert <jack.humb@gmail.com>2016-04-20 20:11:05 -0400
commit157ddccc2c0b865582fb488ea5346e2996b05468 (patch)
treea7e80242ed967b1b11d921410cc1408c41cb820f
parent0fd093b4007229fc0e8bbb440b6febaaea109fb1 (diff)
start-up sound working, removes tick with some devices
-rw-r--r--keyboard/preonic/keymaps/default/keymap.c2
-rw-r--r--tmk_core/common/avr/suspend.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/keyboard/preonic/keymaps/default/keymap.c b/keyboard/preonic/keymaps/default/keymap.c
index 16f8a8bf18..267bfab3d7 100644
--- a/keyboard/preonic/keymaps/default/keymap.c
+++ b/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();
}
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index e295dbe18b..4980680198 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/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