forked from mirrors/qmk_userspace
Remove hex_to_keycode and move tap_random_base64 to send_string.c (#12079)
This commit is contained in:
parent
ea2a7c5ea4
commit
88dce24375
6 changed files with 66 additions and 103 deletions
|
@ -158,7 +158,7 @@ __attribute__((weak)) void unicode_input_cancel(void) {
|
|||
void register_hex(uint16_t hex) {
|
||||
for (int i = 3; i >= 0; i--) {
|
||||
uint8_t digit = ((hex >> (i * 4)) & 0xF);
|
||||
tap_code16(hex_to_keycode(digit));
|
||||
send_nibble(digit);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -171,10 +171,10 @@ void register_hex32(uint32_t hex) {
|
|||
uint8_t digit = ((hex >> (i * 4)) & 0xF);
|
||||
if (digit == 0) {
|
||||
if (!onzerostart) {
|
||||
tap_code16(hex_to_keycode(digit));
|
||||
send_nibble(digit);
|
||||
}
|
||||
} else {
|
||||
tap_code16(hex_to_keycode(digit));
|
||||
send_nibble(digit);
|
||||
onzerostart = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue