Skip to content

Commit 09d473f

Browse files
[io/usb/ccid]: Crashfix, remove tx_packet_buffer from ccid_transport_t struct
1 parent bb88b46 commit 09d473f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib_ccid/include/ccid_types.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ typedef struct {
149149
uint16_t tx_message_length;
150150
uint16_t tx_message_offset;
151151

152-
uint8_t *tx_packet_buffer;
153-
uint8_t tx_packet_length;
152+
uint8_t tx_packet_length;
154153

155154
ccid_protocol_data_t0_t protocol_data;
156155

lib_ccid/src/ccid_transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void CCID_TRANSPORT_tx(ccid_transport_t *handle,
150150
// Fill header
151151
if (buffer) {
152152
tx_packet_buffer[0] = handle->bulk_msg_header.in.msg_type;
153-
U4LE_ENCODE(handle->tx_packet_buffer, 1, handle->bulk_msg_header.in.length);
153+
U4LE_ENCODE(tx_packet_buffer, 1, handle->bulk_msg_header.in.length);
154154
tx_packet_buffer[5] = handle->bulk_msg_header.in.slot_number;
155155
tx_packet_buffer[6] = handle->bulk_msg_header.in.seq_number;
156156
tx_packet_buffer[7] = handle->bulk_msg_header.in.status;

0 commit comments

Comments
 (0)