Skip to content

Commit 2c597fd

Browse files
Rename New cdc cmd
1 parent 9951100 commit 2c597fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

io/include/os_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ typedef enum {
5555
OS_IO_PACKET_TYPE_NFC_APDU = 0x40,
5656
OS_IO_PACKET_TYPE_NFC_APDU_RSP = 0x41,
5757

58-
OS_IO_PACKET_TYPE_AT_APDU = 0x42,
58+
OS_IO_PACKET_TYPE_AT_CMD = 0x42,
5959
} os_io_packet_type_t;
6060

6161
typedef enum {

io_legacy/src/os_io_legacy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ int io_legacy_apdu_rx(uint8_t handle_ux_events)
452452
#endif // HAVE_IO_U2F
453453
}
454454
break;
455-
case OS_IO_PACKET_TYPE_AT_APDU:
455+
case OS_IO_PACKET_TYPE_AT_CMD:
456456
break;
457457

458458
default:

lib_stusb/src/usbd_ledger_cdc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ int32_t USBD_LEDGER_CDC_data_ready(USBD_HandleTypeDef *pdev,
487487
// Filter anything not starting with AT+ :
488488
if (handle->tx_in_progress == 0 && G_io_app.apdu_length > 3) {
489489
// First update packet type in buff :
490-
buffer[0] = OS_IO_PACKET_TYPE_AT_APDU;
490+
buffer[0] = OS_IO_PACKET_TYPE_AT_CMD;
491491
// Then copy data to G_io_rx_buffer.
492492
if (G_io_app.apdu_length < (max_length - 1)) {
493493
memmove(buffer + 1, USBD_LEDGER_io_buffer, G_io_app.apdu_length);

0 commit comments

Comments
 (0)