From 101d2e5df6e6d0d094a998406de2c8d90f1e102c Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 18 Sep 2019 14:55:59 +0200 Subject: [PATCH] legacy: fix reporting model in bootloader --- legacy/bootloader/usb_send.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/bootloader/usb_send.h b/legacy/bootloader/usb_send.h index 7f94ef9d8a..a41554fcc2 100644 --- a/legacy/bootloader/usb_send.h +++ b/legacy/bootloader/usb_send.h @@ -37,7 +37,7 @@ static void send_msg_failure(usbd_device *dev) { static void send_msg_features(usbd_device *dev) { uint8_t response[64]; memzero(response, sizeof(response)); - // response: Features message (id 17), payload len 25 + // response: Features message (id 17), payload len 26 // - vendor = "trezor.io" // - major_version = VERSION_MAJOR // - minor_version = VERSION_MINOR @@ -51,7 +51,7 @@ static void send_msg_features(usbd_device *dev) { // msg_id "\x00\x11" // msg_size - "\x00\x00\x00\x16" + "\x00\x00\x00\x1a" // data "\x0a" "\x09" @@ -63,9 +63,9 @@ static void send_msg_features(usbd_device *dev) { "\x90\x01" "\x00" "\xaa" - "\x01" + "\x01\x01" "1", - 34); + 35); response[30] = firmware_present_new() ? 0x01 : 0x00; while (usbd_ep_write_packet(dev, ENDPOINT_ADDRESS_IN, response, 64) != 64) { }