mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-03 16:56:07 +00:00
fixup! feat(core): implement THP
This commit is contained in:
parent
0246b24818
commit
1d1c5c4a0c
@ -18,13 +18,20 @@ if __debug__:
|
||||
from trezor import utils
|
||||
|
||||
if utils.USE_THP:
|
||||
protocol_specific = ThpMessageType.ThpCreateNewSession
|
||||
else:
|
||||
protocol_specific = MessageType.Initialize
|
||||
|
||||
|
||||
ALLOW_WHILE_LOCKED = (
|
||||
protocol_specific,
|
||||
ThpMessageType.ThpCreateNewSession,
|
||||
MessageType.EndSession,
|
||||
MessageType.GetFeatures,
|
||||
MessageType.Cancel,
|
||||
MessageType.LockDevice,
|
||||
MessageType.DoPreauthorized,
|
||||
MessageType.WipeDevice,
|
||||
MessageType.SetBusy,
|
||||
MessageType.Ping,
|
||||
)
|
||||
else:
|
||||
ALLOW_WHILE_LOCKED = (
|
||||
MessageType.Initialize,
|
||||
MessageType.EndSession,
|
||||
MessageType.GetFeatures,
|
||||
MessageType.Cancel,
|
||||
|
Loading…
Reference in New Issue
Block a user