chore(legacy): add reset to bootloader protobuf message

pull/1461/head
Ondrej Mikle 3 years ago committed by Pavol Rusnak
parent b625b74bc7
commit 2dccbf99d4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

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

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

@ -301,6 +301,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

Loading…
Cancel
Save