mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-16 11:38:12 +00:00
usb: don't use CONFIDENTIAL inside DEBUG_LINK code
This will make confidential sections identical for production and debug build.
This commit is contained in:
parent
4ac99f3470
commit
34aad724f0
@ -299,7 +299,7 @@ static void u2f_rx_callback(usbd_device *dev, uint8_t ep)
|
|||||||
static void debug_rx_callback(usbd_device *dev, uint8_t ep)
|
static void debug_rx_callback(usbd_device *dev, uint8_t ep)
|
||||||
{
|
{
|
||||||
(void)ep;
|
(void)ep;
|
||||||
static CONFIDENTIAL uint8_t buf[64] __attribute__ ((aligned(4)));
|
static uint8_t buf[64] __attribute__ ((aligned(4)));
|
||||||
if ( usbd_ep_read_packet(dev, ENDPOINT_ADDRESS_DEBUG_OUT, buf, 64) != 64) return;
|
if ( usbd_ep_read_packet(dev, ENDPOINT_ADDRESS_DEBUG_OUT, buf, 64) != 64) return;
|
||||||
debugLog(0, "", "debug_rx_callback");
|
debugLog(0, "", "debug_rx_callback");
|
||||||
if (!tiny) {
|
if (!tiny) {
|
||||||
|
Loading…
Reference in New Issue
Block a user