diff options
Diffstat (limited to 'src/p18')
-rw-r--r-- | src/p18/client.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p18/client.cc b/src/p18/client.cc index 1798be9..4c5d70f 100644 --- a/src/p18/client.cc +++ b/src/p18/client.cc @@ -115,9 +115,9 @@ std::shared_ptr<response_type::BaseResponse> Client::execute(p18::CommandType co std::pair<std::shared_ptr<char>, size_t> Client::runOnDevice(std::string& raw) { size_t bufSize = 256; std::shared_ptr<char> buf(new char[bufSize]); - size_t responseSize = device_->run( - (const u8*)raw.c_str(), raw.size(), - (u8*)buf.get(), bufSize); + size_t responseSize = device_->enqueue( + (const u8*) raw.c_str(), raw.size(), + (u8*) buf.get(), bufSize); return std::pair<std::shared_ptr<char>, size_t>(buf, responseSize); } |