diff --git a/common/protob/messages-debug.proto b/common/protob/messages-debug.proto index 7b282833e..4cf41752c 100644 --- a/common/protob/messages-debug.proto +++ b/common/protob/messages-debug.proto @@ -26,9 +26,10 @@ message DebugLinkDecision { RIGHT = 3; } - optional uint32 x = 4; // touch X coordinate - optional uint32 y = 5; // touch Y coordinate - optional bool wait = 6; // wait for layout change + optional uint32 x = 4; // touch X coordinate + optional uint32 y = 5; // touch Y coordinate + optional bool wait = 6; // wait for layout change + optional uint32 hold_ms = 7; // touch hold duration } /** diff --git a/core/src/trezor/messages/DebugLinkDecision.py b/core/src/trezor/messages/DebugLinkDecision.py index aaf534df9..ce2921c76 100644 --- a/core/src/trezor/messages/DebugLinkDecision.py +++ b/core/src/trezor/messages/DebugLinkDecision.py @@ -23,6 +23,7 @@ class DebugLinkDecision(p.MessageType): x: int = None, y: int = None, wait: bool = None, + hold_ms: int = None, ) -> None: self.yes_no = yes_no self.swipe = swipe @@ -30,6 +31,7 @@ class DebugLinkDecision(p.MessageType): self.x = x self.y = y self.wait = wait + self.hold_ms = hold_ms @classmethod def get_fields(cls) -> Dict: @@ -40,4 +42,5 @@ class DebugLinkDecision(p.MessageType): 4: ('x', p.UVarintType, None), 5: ('y', p.UVarintType, None), 6: ('wait', p.BoolType, None), + 7: ('hold_ms', p.UVarintType, None), } diff --git a/python/src/trezorlib/messages/DebugLinkDecision.py b/python/src/trezorlib/messages/DebugLinkDecision.py index 42be1e295..08e424d7c 100644 --- a/python/src/trezorlib/messages/DebugLinkDecision.py +++ b/python/src/trezorlib/messages/DebugLinkDecision.py @@ -23,6 +23,7 @@ class DebugLinkDecision(p.MessageType): x: int = None, y: int = None, wait: bool = None, + hold_ms: int = None, ) -> None: self.yes_no = yes_no self.swipe = swipe @@ -30,6 +31,7 @@ class DebugLinkDecision(p.MessageType): self.x = x self.y = y self.wait = wait + self.hold_ms = hold_ms @classmethod def get_fields(cls) -> Dict: @@ -40,4 +42,5 @@ class DebugLinkDecision(p.MessageType): 4: ('x', p.UVarintType, None), 5: ('y', p.UVarintType, None), 6: ('wait', p.BoolType, None), + 7: ('hold_ms', p.UVarintType, None), }