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
This commit is contained in:
committed by
Drashna Jael're
parent
e97ef90fac
commit
39466aa7c4
@@ -508,6 +508,13 @@ void send_string_with_delay_P(const char *str, uint8_t interval) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void send_char(char ascii_code) {
|
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]);
|
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_shifted = PGM_LOADBIT(ascii_to_shift_lut, (uint8_t)ascii_code);
|
||||||
bool is_altgred = PGM_LOADBIT(ascii_to_altgr_lut, (uint8_t)ascii_code);
|
bool is_altgred = PGM_LOADBIT(ascii_to_altgr_lut, (uint8_t)ascii_code);
|
||||||
|
|||||||
Reference in New Issue
Block a user