From 39466aa7c45a8bfd9dd2fc54bcd0275969b44229 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sun, 19 Jan 2020 16:30:34 +0000 Subject: Run clang-format manually to fix recently changed files (#7934) * Run clang-format manually to fix recently changed files * Run clang-format manually to fix recently changed files - revert template files * Run clang-format manually to fix recently changed files - format off for ascii_to_keycode_lut --- quantum/quantum.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'quantum/quantum.c') diff --git a/quantum/quantum.c b/quantum/quantum.c index f3f0cc79e2..bc56fe6ed6 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -318,9 +318,9 @@ bool process_record_quantum(keyrecord_t *record) { return false; #endif #ifdef WEBUSB_ENABLE - case WEBUSB_PAIR: - webusb_state.pairing ^= true; - return false; + case WEBUSB_PAIR: + webusb_state.pairing ^= true; + return false; #endif } } @@ -508,6 +508,13 @@ void send_string_with_delay_P(const char *str, uint8_t interval) { } void send_char(char ascii_code) { +#if defined(AUDIO_ENABLE) && defined(SENDSTRING_BELL) + if (ascii_code == '\a') { // BEL + PLAY_SONG(bell_song); + return; + } +#endif + uint8_t keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]); bool is_shifted = PGM_LOADBIT(ascii_to_shift_lut, (uint8_t)ascii_code); bool is_altgred = PGM_LOADBIT(ascii_to_altgr_lut, (uint8_t)ascii_code); -- cgit v1.2.3