diff options
Diffstat (limited to 'src/direct_bt')
-rw-r--r-- | src/direct_bt/HCIHandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp index f79e86d9..f5d74be0 100644 --- a/src/direct_bt/HCIHandler.cpp +++ b/src/direct_bt/HCIHandler.cpp @@ -1994,6 +1994,10 @@ std::unique_ptr<HCIEvent> HCIHandler::receiveCommandComplete(HCICommand &req, } return nullptr; // timeout } else if( nullptr == ev_cc ) { + if( ev->isEvent(HCIEventType::CMD_STATUS) ) { + HCICommandStatusEvent * ev_cs = static_cast<HCICommandStatusEvent*>(ev.get()); + *status = ev_cs->getStatus(); + } if( !quiet || jau::environment::get().verbose ) { WARN_PRINT("%s -> %s: Status 0x%2.2X (%s), errno %d %s: res %s, req %s - %s", to_string(req.getOpcode()).c_str(), to_string(evc).c_str(), |