1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

bootloader: react to GetFeatures too

This commit is contained in:
Pavol Rusnak 2018-03-07 14:16:24 +01:00
parent 2a4a298d58
commit e0b5526f27
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -292,6 +292,10 @@ static void rx_callback(usbd_device *dev, uint8_t ep)
flash_state = STATE_OPEN;
return;
}
if (msg_id == 0x0037) { // GetFeatures message (id 55)
send_msg_features(dev);
return;
}
if (msg_id == 0x0001) { // Ping message (id 1)
send_msg_success(dev);
return;