Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
luismiguensfernandez committed Sep 12, 2024
1 parent 71bafa4 commit e038a88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/python/CanModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ PYBIND11_MODULE(canmodule, m) {

py::class_<CanDeviceArguments>(m, "CanDeviceArguments")
.def(py::init<const CanDeviceConfiguration&,
const std::function<void(const CanFrame&)>&>(),
py::arg("config"), py::arg("receiver"))
const std::function<void(const CanFrame&)>,
const std::function<void(const CanReturnCode, std::string_view)>&>(),
py::arg("config"), py::arg("receiver"), py::arg("on_error"))
.def_readonly("config", &CanDeviceArguments::config);

py::class_<CanDeviceConfiguration>(m, "CanDeviceConfiguration")
Expand Down

0 comments on commit e038a88

Please sign in to comment.