From f771e41c944003daafcda96ff41f4f4ce8a23df1 Mon Sep 17 00:00:00 2001 From: solipsis Date: Mon, 2 Apr 2018 09:38:06 -0600 Subject: [PATCH] respect debug button flag --- pkg/keepkey/transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/keepkey/transport.go b/pkg/keepkey/transport.go index 07314ac..631999b 100644 --- a/pkg/keepkey/transport.go +++ b/pkg/keepkey/transport.go @@ -261,7 +261,7 @@ func (kk *Keepkey) keepkeyExchange(req proto.Message, results ...proto.Message) // handle button requests and forward the results if kind == uint16(kkProto.MessageType_MessageType_ButtonRequest) { promptButton() - if kk.debug != nil { + if kk.autoButton && kk.debug != nil { t := true fmt.Println("sending debug press") kk.keepkeyExchange(&kkProto.DebugLinkDecision{YesNo: &t}, &kkProto.Success{})