mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 16:48:09 +00:00
fix(common): change msg_id of RebootToBootloader from 804 to 87
This commit is contained in:
parent
77e99078c3
commit
4b0f41d41e
@ -81,6 +81,7 @@ enum MessageType {
|
||||
MessageType_DoPreauthorized = 84 [(wire_in) = true];
|
||||
MessageType_PreauthorizedRequest = 85 [(wire_out) = true];
|
||||
MessageType_CancelAuthorization = 86 [(wire_in) = true];
|
||||
MessageType_RebootToBootloader = 87 [(wire_in) = true];
|
||||
|
||||
// Deprecated messages, kept for protobuf compatibility.
|
||||
// Both are marked wire_out so that we don't need to implement incoming handler for legacy
|
||||
@ -278,6 +279,4 @@ enum MessageType {
|
||||
MessageType_WebAuthnCredentials = 801 [(wire_out) = true];
|
||||
MessageType_WebAuthnAddResidentCredential = 802 [(wire_in) = true];
|
||||
MessageType_WebAuthnRemoveResidentCredential = 803 [(wire_in) = true];
|
||||
|
||||
MessageType_RebootToBootloader = 804 [(wire_in) = true];
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ EndSession: Literal[83] = 83
|
||||
DoPreauthorized: Literal[84] = 84
|
||||
PreauthorizedRequest: Literal[85] = 85
|
||||
CancelAuthorization: Literal[86] = 86
|
||||
RebootToBootloader: Literal[87] = 87
|
||||
Deprecated_PassphraseStateRequest: Literal[77] = 77
|
||||
Deprecated_PassphraseStateAck: Literal[78] = 78
|
||||
FirmwareErase: Literal[6] = 6
|
||||
@ -207,4 +208,3 @@ if not utils.BITCOIN_ONLY:
|
||||
WebAuthnCredentials: Literal[801] = 801
|
||||
WebAuthnAddResidentCredential: Literal[802] = 802
|
||||
WebAuthnRemoveResidentCredential: Literal[803] = 803
|
||||
RebootToBootloader: Literal[804] = 804
|
||||
|
@ -11,4 +11,4 @@ if __debug__:
|
||||
|
||||
|
||||
class RebootToBootloader(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 804
|
||||
MESSAGE_WIRE_TYPE = 87
|
||||
|
@ -306,7 +306,7 @@ static bool fsm_layoutAddress(const char *address, const char *desc,
|
||||
}
|
||||
|
||||
void fsm_msgRebootToBootloader(void) {
|
||||
fsm_sendSuccess("You are being rebooted");
|
||||
fsm_sendSuccess(_("You are being rebooted"));
|
||||
#if !EMULATOR
|
||||
svc_reboot_to_bootloader();
|
||||
#else
|
||||
|
@ -43,6 +43,7 @@ EndSession: Literal[83] = 83
|
||||
DoPreauthorized: Literal[84] = 84
|
||||
PreauthorizedRequest: Literal[85] = 85
|
||||
CancelAuthorization: Literal[86] = 86
|
||||
RebootToBootloader: Literal[87] = 87
|
||||
Deprecated_PassphraseStateRequest: Literal[77] = 77
|
||||
Deprecated_PassphraseStateAck: Literal[78] = 78
|
||||
FirmwareErase: Literal[6] = 6
|
||||
@ -204,4 +205,3 @@ WebAuthnListResidentCredentials: Literal[800] = 800
|
||||
WebAuthnCredentials: Literal[801] = 801
|
||||
WebAuthnAddResidentCredential: Literal[802] = 802
|
||||
WebAuthnRemoveResidentCredential: Literal[803] = 803
|
||||
RebootToBootloader: Literal[804] = 804
|
||||
|
@ -11,4 +11,4 @@ if __debug__:
|
||||
|
||||
|
||||
class RebootToBootloader(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 804
|
||||
MESSAGE_WIRE_TYPE = 87
|
||||
|
Loading…
Reference in New Issue
Block a user