diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-04-18 21:03:21 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-04-18 21:03:21 -0400 |
| commit | f2c1e9ddd40573f4b44ffc2ec7df1fb76346f627 (patch) | |
| tree | da477a9e67e16339267ee0946c3b253c612c7bbf /tmk_core/common/command.c | |
| parent | d94960be5b32b6a4019b822550ae09cf802bfcd7 (diff) | |
| parent | 499e3096e9021b88a6a705ad7034ccbacb97b975 (diff) | |
| download | qmk_firmware-f2c1e9ddd40573f4b44ffc2ec7df1fb76346f627.tar.gz qmk_firmware-f2c1e9ddd40573f4b44ffc2ec7df1fb76346f627.zip | |
Merge pull request #262 from IBNobody/master
Fixed keyboard snoring while asleep
Diffstat (limited to 'tmk_core/common/command.c')
| -rw-r--r-- | tmk_core/common/command.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 7572b9597..f06abaf7f 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c | |||
| @@ -49,6 +49,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 49 | # include "usbdrv.h" | 49 | # include "usbdrv.h" |
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
| 52 | #ifdef AUDIO_ENABLE | ||
| 53 | #include "audio.h" | ||
| 54 | #endif /* AUDIO_ENABLE */ | ||
| 55 | |||
| 52 | 56 | ||
| 53 | static bool command_common(uint8_t code); | 57 | static bool command_common(uint8_t code); |
| 54 | static void command_common_help(void); | 58 | static void command_common_help(void); |
| @@ -352,6 +356,9 @@ static bool command_common(uint8_t code) | |||
| 352 | case MAGIC_KC(MAGIC_KEY_BOOTLOADER): | 356 | case MAGIC_KC(MAGIC_KEY_BOOTLOADER): |
| 353 | clear_keyboard(); // clear to prevent stuck keys | 357 | clear_keyboard(); // clear to prevent stuck keys |
| 354 | print("\n\nJumping to bootloader... "); | 358 | print("\n\nJumping to bootloader... "); |
| 359 | #ifdef AUDIO_ENABLE | ||
| 360 | play_goodbye_tone(); | ||
| 361 | #endif | ||
| 355 | _delay_ms(1000); | 362 | _delay_ms(1000); |
| 356 | bootloader_jump(); // not return | 363 | bootloader_jump(); // not return |
| 357 | break; | 364 | break; |
