Browse Source

ble-dongle: Add SW reset

backend_DiskStation_Sep-29-1817-2021_TypeConflict
Andreas Berthoud 4 years ago
parent
commit
f6c69ecd12
  1. 4
      nucleo-wb55-dongle-ble/commands/GPCommand.cpp

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

Loading…
Cancel
Save