From d0b630abfcf7120518e12caf4ae8c34d9baaac57 Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Fri, 26 Feb 2021 15:22:32 +0100 Subject: [PATCH] chore(legacy): return code for reboot call --- common/protob/messages-management.proto | 2 +- legacy/firmware/fsm.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/protob/messages-management.proto b/common/protob/messages-management.proto index 44fa8ba918..26164b43eb 100644 --- a/common/protob/messages-management.proto +++ b/common/protob/messages-management.proto @@ -409,7 +409,7 @@ message CancelAuthorization { /** * Request: Reboot firmware to bootloader * @start - * Can't have response. + * @next Success */ message RebootToBootloader { } diff --git a/legacy/firmware/fsm.c b/legacy/firmware/fsm.c index 5b8054acce..b44e7ab34d 100644 --- a/legacy/firmware/fsm.c +++ b/legacy/firmware/fsm.c @@ -306,6 +306,7 @@ static bool fsm_layoutAddress(const char *address, const char *desc, } void fsm_msgRebootToBootloader(void) { + fsm_sendSuccess("You are being rebooted"); #if !EMULATOR svc_reboot_to_bootloader(); #else