mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
prodtest: fix touch coordinates
This commit is contained in:
parent
f0cd76de47
commit
622cb847e5
@ -193,8 +193,8 @@ static void test_touch(const char *args)
|
||||
|
||||
uint32_t evt = 0;
|
||||
if (touch_click_timeout(&evt, timeout * 1000)) {
|
||||
uint32_t x = (evt & 0xFF00) >> 8;
|
||||
uint32_t y = (evt & 0xFF);
|
||||
uint32_t x = (evt >> 12) & 0xFFF;
|
||||
uint32_t y = (evt >> 0) & 0xFFF;
|
||||
vcp_printf("OK %d %d", x, y);
|
||||
} else {
|
||||
vcp_printf("ERROR TIMEOUT");
|
||||
|
Loading…
Reference in New Issue
Block a user