1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +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:
Pavol Rusnak 2018-09-13 19:58:34 +02:00
parent 4ac99f3470
commit 34aad724f0
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)
{
(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;
debugLog(0, "", "debug_rx_callback");
if (!tiny) {