Skip to content

Commit

Permalink
respect debug button flag
Browse files Browse the repository at this point in the history
  • Loading branch information
solipsis committed Apr 2, 2018
1 parent 9ff0a38 commit f771e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/keepkey/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit f771e41

Please sign in to comment.