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:
parent
bc5dba751a
commit
68ef9b9322
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user