1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-09 06:50:58 +00:00

embed: add comment about why first value of display_id is discarded

This commit is contained in:
Pavol Rusnak 2018-08-04 17:15:29 +02:00
parent bc5dba751a
commit 68ef9b9322
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -50,7 +50,7 @@ static uint32_t read_display_id(uint8_t command) {
volatile uint8_t c;
uint32_t id = 0;
CMD(command);
c = ADDR;
c = ADDR; // first returned value is a dummy value and should be discarded
c = ADDR; id |= (c << 16);
c = ADDR; id |= (c << 8);
c = ADDR; id |= c;