Skip to content

Commit

Permalink
Fixing a bug in PyBackend set_xu method
Browse files Browse the repository at this point in the history
  • Loading branch information
icarpis committed Apr 29, 2018
1 parent e213dca commit cc838e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrappers/python/pybackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,11 @@ PYBIND11_MODULE(NAME, m) {
std::vector<uint8_t> data(l.size());
for (int i = 0; i < l.size(); ++i)
data[i] = l[i].cast<uint8_t>();
dev.set_xu(xu, ctrl, data.data(), (int)data.size());
return dev.set_xu(xu, ctrl, data.data(), (int)data.size());
}, "xu"_a, "ctrl"_a, "data"_a)
.def("set_xu", [](platform::multi_pins_uvc_device &dev, const platform::extension_unit &xu, uint8_t ctrl, std::vector<uint8_t> &data)
{
dev.set_xu(xu, ctrl, data.data(), (int)data.size());
return dev.set_xu(xu, ctrl, data.data(), (int)data.size());
}, "xu"_a, "ctrl"_a, "data"_a)
.def("get_xu", [](const platform::multi_pins_uvc_device &dev, const platform::extension_unit &xu, uint8_t ctrl, size_t len)
{
Expand Down

0 comments on commit cc838e4

Please sign in to comment.