mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2024-09-20 03:10:10 +00:00
Added support for APPEND_CR.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
26ac66e813
commit
3d1c68fa40
@ -1 +1 @@
|
||||
Subproject commit ef0fb29f2919477231d125c245ec6d4be7e49fac
|
||||
Subproject commit 630da663c4bef29d938f238d77016a9c84ddae6d
|
@ -176,12 +176,18 @@ int otp_button_pressed(uint8_t slot) {
|
||||
flash_write_data_to_file(ef, new_otp_config, sizeof(new_otp_config));
|
||||
low_flash_available();
|
||||
}
|
||||
if (otp_config->tkt_flags & APPEND_CR) {
|
||||
append_keyboard_buffer((const uint8_t *)"\r", 1);
|
||||
}
|
||||
}
|
||||
else if (otp_config->cfg_flags & SHORT_TICKET || otp_config->cfg_flags & STATIC_TICKET) {
|
||||
if (otp_config->cfg_flags & SHORT_TICKET) {
|
||||
otp_config->fixed_size /= 2;
|
||||
}
|
||||
add_keyboard_buffer(otp_config->fixed_data, otp_config->fixed_size, false);
|
||||
if (otp_config->tkt_flags & APPEND_CR) {
|
||||
append_keyboard_buffer((const uint8_t *)"\x28", 1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user