Skip to content

Commit

Permalink
questionable fixes
Browse files Browse the repository at this point in the history
possibly breaking API
  • Loading branch information
2bndy5 committed Sep 8, 2024
1 parent d1a581c commit 096d5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyRF24/pyRF24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ BOOST_PYTHON_MODULE(RF24)
// ******************** RF24 class **************************
bp::class_<RF24>("RF24", bp::init<uint16_t, uint16_t>((bp::arg("_cepin"), bp::arg("_cspin"))))
#if defined(RF24_LINUX) && !defined(MRAA)
.def(bp::init<uint16_t, uint16_t, uint32_t>((bp::arg("_cepin"), bp::arg("_cspin"), bp::arg("spispeed"))))
.def(bp::init<uint32_t>((bp::arg("spispeed"))))
.def(bp::init<uint16_t, uint16_t, uint32_t>((bp::arg("_cepin"), bp::arg("_cspin"), bp::arg("spi_speed"))))
.def(bp::init<uint32_t>((bp::arg("spi_speed"))))
.def(bp::init<>())
#endif
.def("available", (bool(::RF24::*)())(&::RF24::available))
Expand Down

0 comments on commit 096d5b9

Please sign in to comment.