From 14bdfbf89aa50b2de13688c4e69112b5d31f9207 Mon Sep 17 00:00:00 2001 From: Nav Date: Wed, 16 Mar 2022 17:01:08 +0000 Subject: [PATCH] New constructor with command ID param for delegating construction, for the CMSIS-DAP command class --- src/DebugToolDrivers/Protocols/CMSIS-DAP/Command.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DebugToolDrivers/Protocols/CMSIS-DAP/Command.hpp b/src/DebugToolDrivers/Protocols/CMSIS-DAP/Command.hpp index 90bec9cc..a798f675 100644 --- a/src/DebugToolDrivers/Protocols/CMSIS-DAP/Command.hpp +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/Command.hpp @@ -50,6 +50,8 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap */ using ExpectedResponseType = Response; + explicit Command(unsigned char commandId): commandId(commandId) {}; + Command() = default; virtual ~Command() = default;