summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-01-19 16:30:34 +0000
committerDrashna Jael're <drashna@live.com>2020-03-26 00:42:11 -0700
commit39466aa7c45a8bfd9dd2fc54bcd0275969b44229 (patch)
treeecf78f10dd53cffa61866906da682e918d635b51 /quantum/quantum.c
parente97ef90fac4a8a59552e66fff11d6061bc8fe67e (diff)
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
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c13
1 files changed, 10 insertions, 3 deletions
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);