From 810f143242add5a8d9bdf46aba3dd05d23b14bc5 Mon Sep 17 00:00:00 2001 From: Eric Betts Date: Sat, 7 Mar 2026 12:47:04 -0800 Subject: [PATCH] ufbt format --- ccid.h | 12 ++++++------ t_1.c | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ccid.h b/ccid.h index a03b38d..890d058 100644 --- a/ccid.h +++ b/ccid.h @@ -22,12 +22,12 @@ */ // TODO: rename/renumber -#define CCID_SLOT_0_MASK 0x03 -#define CCID_SLOT_0_CARD_OUT 0x02 -#define CCID_SLOT_0_CARD_IN 0x03 -#define CCID_SLOT_1_MASK 0x0C -#define CCID_SLOT_1_CARD_IN 0x04 -#define CCID_SLOT_1_CARD_OUT 0x0C +#define CCID_SLOT_0_MASK 0x03 +#define CCID_SLOT_0_CARD_OUT 0x02 +#define CCID_SLOT_0_CARD_IN 0x03 +#define CCID_SLOT_1_MASK 0x0C +#define CCID_SLOT_1_CARD_IN 0x04 +#define CCID_SLOT_1_CARD_OUT 0x0C /* * * BULK_OUT messages from PC to Reader diff --git a/t_1.c b/t_1.c index 43621e8..0eda220 100644 --- a/t_1.c +++ b/t_1.c @@ -145,8 +145,7 @@ void seader_send_t1(SeaderUartBridge* seader_uart, uint8_t* apdu, size_t len) { t1->tx_buffer = bit_buffer_alloc(768); bit_buffer_copy_bytes(t1->tx_buffer, apdu, len); } - size_t remaining = - (bit_buffer_get_size_bytes(t1->tx_buffer) - t1->tx_buffer_offset); + size_t remaining = (bit_buffer_get_size_bytes(t1->tx_buffer) - t1->tx_buffer_offset); size_t copy_length = remaining > ifsc ? ifsc : remaining; uint8_t* chunk = (uint8_t*)bit_buffer_get_data(t1->tx_buffer) + t1->tx_buffer_offset;