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; }