From f6c69ecd123df0aa09231fd1cdc5ab3624ae055d Mon Sep 17 00:00:00 2001 From: Andreas Berthoud Date: Sun, 15 Aug 2021 20:52:20 +0200 Subject: [PATCH] ble-dongle: Add SW reset --- nucleo-wb55-dongle-ble/commands/GPCommand.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nucleo-wb55-dongle-ble/commands/GPCommand.cpp b/nucleo-wb55-dongle-ble/commands/GPCommand.cpp index e89ec6f..123ffd7 100644 --- a/nucleo-wb55-dongle-ble/commands/GPCommand.cpp +++ b/nucleo-wb55-dongle-ble/commands/GPCommand.cpp @@ -8,6 +8,7 @@ #include "GPCommand.hpp" #include "app_ble.h" +#include "stm32wbxx_hal.h" GPResponse::GPResponse(com_channel_type_t com_channel_type, uint16_t response_identifier, bool was_successful) : Response(com_channel_type, response_identifier) { @@ -38,7 +39,8 @@ GPResponse * GPRequest::execute_request(com_channel_type_t com_channel_type, uin case 1: APP_BLE_Key_Button1_Action(); break; - + case 2: + HAL_NVIC_SystemReset(); default: break; }