diff options
author | Sven Gothel <[email protected]> | 2021-09-16 05:52:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-16 05:52:32 +0200 |
commit | e9cbb1a6c046e1433a73a0fa4c528259634078d6 (patch) | |
tree | 9e1650a72c980bc12a2072eb72b1ac079cd4e124 /api/direct_bt | |
parent | 34d434158c494ab8c5bfa19113f2a63752a009d8 (diff) |
MgmtEvent::ctor: Remove writing opc, dev_id and param_size: Done in called super MgmtMsg::ctor (redundancy)
Diffstat (limited to 'api/direct_bt')
-rw-r--r-- | api/direct_bt/MgmtTypes.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<uint16_t>(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) { |