aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/backlight.c5
-rw-r--r--tmk_core/common/backlight.h1
-rw-r--r--tmk_core/common/command.c4
-rw-r--r--tmk_core/common/nodebug.h12
4 files changed, 17 insertions, 5 deletions
diff --git a/tmk_core/common/backlight.c b/tmk_core/common/backlight.c
index 2f6fc1cd6..c9e8fd3fd 100644
--- a/tmk_core/common/backlight.c
+++ b/tmk_core/common/backlight.c
@@ -83,3 +83,8 @@ void backlight_level(uint8_t level)
83 eeconfig_update_backlight(backlight_config.raw); 83 eeconfig_update_backlight(backlight_config.raw);
84 backlight_set(backlight_config.level); 84 backlight_set(backlight_config.level);
85} 85}
86
87uint8_t get_backlight_level(void)
88{
89 return backlight_config.level;
90} \ No newline at end of file
diff --git a/tmk_core/common/backlight.h b/tmk_core/common/backlight.h
index 525ec8bbe..f57309267 100644
--- a/tmk_core/common/backlight.h
+++ b/tmk_core/common/backlight.h
@@ -36,5 +36,6 @@ void backlight_toggle(void);
36void backlight_step(void); 36void backlight_step(void);
37void backlight_set(uint8_t level); 37void backlight_set(uint8_t level);
38void backlight_level(uint8_t level); 38void backlight_level(uint8_t level);
39uint8_t get_backlight_level(void);
39 40
40#endif 41#endif
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index f06abaf7f..9edcc42a0 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -357,9 +357,11 @@ static bool command_common(uint8_t code)
357 clear_keyboard(); // clear to prevent stuck keys 357 clear_keyboard(); // clear to prevent stuck keys
358 print("\n\nJumping to bootloader... "); 358 print("\n\nJumping to bootloader... ");
359 #ifdef AUDIO_ENABLE 359 #ifdef AUDIO_ENABLE
360 stop_all_notes();
360 play_goodbye_tone(); 361 play_goodbye_tone();
362 #else
363 _delay_ms(1000);
361 #endif 364 #endif
362 _delay_ms(1000);
363 bootloader_jump(); // not return 365 bootloader_jump(); // not return
364 break; 366 break;
365 367
diff --git a/tmk_core/common/nodebug.h b/tmk_core/common/nodebug.h
index 93309ada4..5e18656e5 100644
--- a/tmk_core/common/nodebug.h
+++ b/tmk_core/common/nodebug.h
@@ -16,10 +16,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef NODEBUG_H 18#ifndef NODEBUG_H
19#define NODEBUG_H 1 19#define NODEBUG_H
20 20
21#define NO_DEBUG 21#ifndef NO_DEBUG
22#include "debug.h" 22 #define NO_DEBUG
23#undef NO_DEBUG 23 #include "debug.h"
24 #undef NO_DEBUG
25#else
26 #include "debug.h"
27#endif
24 28
25#endif 29#endif