From e9cbb1a6c046e1433a73a0fa4c528259634078d6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 16 Sep 2021 05:52:32 +0200 Subject: MgmtEvent::ctor: Remove writing opc, dev_id and param_size: Done in called super MgmtMsg::ctor (redundancy) --- api/direct_bt/MgmtTypes.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'api/direct_bt') diff --git a/api/direct_bt/MgmtTypes.hpp b/api/direct_bt/MgmtTypes.hpp index 4240a75d..5c66e307 100644 --- a/api/direct_bt/MgmtTypes.hpp +++ b/api/direct_bt/MgmtTypes.hpp @@ -1192,11 +1192,8 @@ namespace direct_bt { : MgmtMsg(number(opc), dev_id, param_size) { // checkOpcode(opc, READ_VERSION, SET_BLOCKED_KEYS); - - pdu.put_uint16_nc(0, static_cast(opc)); - pdu.put_uint16_nc(2, dev_id); - pdu.put_uint16_nc(4, param_size); } + MgmtEvent(const Opcode opc, const uint16_t dev_id, const uint16_t param_size, const uint8_t* param) : MgmtEvent(opc, dev_id, param_size) { -- cgit v1.2.3