From 2a59a8e0556569cd12b4783335765ad6a4ee20b0 Mon Sep 17 00:00:00 2001 From: slush0 Date: Tue, 4 Feb 2014 01:02:16 +0100 Subject: [PATCH] Added Ping.button_protection --- trezorlib/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/trezorlib/client.py b/trezorlib/client.py index f26893e2ac..6954ca3bb5 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -111,10 +111,11 @@ class TrezorClient(object): def get_entropy(self, size): return self.call(proto.GetEntropy(size=size), proto.Entropy).entropy - def ping(self, msg, pin_protection=False, passphrase_protection=False): + def ping(self, msg, button_protection=True, pin_protection=True, passphrase_protection=True): msg = proto.Ping(message=msg, - pin_protection=pin_protection, - passphrase_protection=passphrase_protection) + button_protection=button_protection, + pin_protection=pin_protection, + passphrase_protection=passphrase_protection) return self.call(msg, proto.Success).message