mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-22 05:10:56 +00:00
client: fix PinMatrixRequestType enum usage
This commit is contained in:
parent
b3ef649f64
commit
8689440d90
@ -254,11 +254,11 @@ class TextUIMixin(object):
|
|||||||
return proto.WordAck(word=character)
|
return proto.WordAck(word=character)
|
||||||
|
|
||||||
def callback_PinMatrixRequest(self, msg):
|
def callback_PinMatrixRequest(self, msg):
|
||||||
if msg.type == proto.PinMatrixRequestType_Current:
|
if msg.type == proto.PinMatrixRequestType.Current:
|
||||||
desc = 'current PIN'
|
desc = 'current PIN'
|
||||||
elif msg.type == proto.PinMatrixRequestType_NewFirst:
|
elif msg.type == proto.PinMatrixRequestType.NewFirst:
|
||||||
desc = 'new PIN'
|
desc = 'new PIN'
|
||||||
elif msg.type == proto.PinMatrixRequestType_NewSecond:
|
elif msg.type == proto.PinMatrixRequestType.NewSecond:
|
||||||
desc = 'new PIN again'
|
desc = 'new PIN again'
|
||||||
else:
|
else:
|
||||||
desc = 'PIN'
|
desc = 'PIN'
|
||||||
|
Loading…
Reference in New Issue
Block a user