chore(legacy): add reset to bootloader protobuf message

python/0.12.x
Ondrej Mikle 3 years ago committed by matejcik
parent 09f0a062cf
commit 3da1cc8f1c

@ -401,3 +401,11 @@ message PreauthorizedRequest {
*/
message CancelAuthorization {
}
/**
* Request: Reboot firmware to bootloader
* @start
* Can't have response.
*/
message RebootToBootloader {
}

@ -271,4 +271,6 @@ 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];
}

@ -297,6 +297,12 @@ static bool fsm_layoutAddress(const char *address, const char *desc,
}
}
void fsm_msgRebootToBootloader(void) {
#if !EMULATOR
svc_reboot_to_bootloader();
#endif
}
#include "fsm_msg_coin.h"
#include "fsm_msg_common.h"
#include "fsm_msg_crypto.h"

@ -138,4 +138,6 @@ void fsm_msgStellarAccountMergeOp(const StellarAccountMergeOp *msg);
void fsm_msgStellarManageDataOp(const StellarManageDataOp *msg);
void fsm_msgStellarBumpSequenceOp(const StellarBumpSequenceOp *msg);
void fsm_msgRebootToBootloader(void);
#endif

@ -201,3 +201,4 @@ WebAuthnListResidentCredentials = 800 # type: Literal[800]
WebAuthnCredentials = 801 # type: Literal[801]
WebAuthnAddResidentCredential = 802 # type: Literal[802]
WebAuthnRemoveResidentCredential = 803 # type: Literal[803]
RebootToBootloader = 804 # type: Literal[804]

@ -0,0 +1,14 @@
# Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class RebootToBootloader(p.MessageType):
MESSAGE_WIRE_TYPE = 804

@ -215,6 +215,7 @@ from .PinMatrixRequest import PinMatrixRequest
from .Ping import Ping
from .PreauthorizedRequest import PreauthorizedRequest
from .PublicKey import PublicKey
from .RebootToBootloader import RebootToBootloader
from .RecoveryDevice import RecoveryDevice
from .ResetDevice import ResetDevice
from .RippleAddress import RippleAddress

Loading…
Cancel
Save