From e54df525c48ccbfba78bcfbe3f956693c3d94d0d Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 21 Nov 2023 11:53:47 +0100 Subject: [PATCH] Removing SHORT_TICKET limitation. It is not used to return the half of ticket, but to combine with static to produce hex scancodes. Fixes #29. Signed-off-by: Pol Henarejos --- src/fido/otp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fido/otp.c b/src/fido/otp.c index 58b7e34..e37e779 100644 --- a/src/fido/otp.c +++ b/src/fido/otp.c @@ -267,8 +267,8 @@ int otp_button_pressed(uint8_t slot) { } else if (otp_config->cfg_flags & SHORT_TICKET || otp_config->cfg_flags & STATIC_TICKET) { uint8_t fixed_size = FIXED_SIZE + UID_SIZE + KEY_SIZE; - if (otp_config->cfg_flags & SHORT_TICKET) { - fixed_size /= 2; + if (otp_config->cfg_flags & SHORT_TICKET) { // Not clear which is the purpose of SHORT_TICKET + //fixed_size /= 2; } add_keyboard_buffer(otp_config->fixed_data, fixed_size, false); if (otp_config->tkt_flags & APPEND_CR) {