From 20977e0f6bb166bd36b2699f119e154afb3c28de Mon Sep 17 00:00:00 2001 From: 2bndy5 <2bndy5@gmail.com> Date: Sat, 24 Jul 2021 02:17:24 -0700 Subject: [PATCH] add newer begin() to py wrapper --- RPi/pyRF24Network/pyRF24Network.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RPi/pyRF24Network/pyRF24Network.cpp b/RPi/pyRF24Network/pyRF24Network.cpp index 2ff94d15..f6fb3ade 100644 --- a/RPi/pyRF24Network/pyRF24Network.cpp +++ b/RPi/pyRF24Network/pyRF24Network.cpp @@ -91,10 +91,14 @@ BOOST_PYTHON_MODULE(RF24Network) typedef bool (::RF24Network::*available_function_type)(); RF24Network_exposer.def("available", available_function_type(&::RF24Network::available)); } - { //::RF24Network::begin + { //::RF24Network::begin (marked as deprecated) typedef void (::RF24Network::*begin_function_type)(::uint8_t, ::uint16_t); RF24Network_exposer.def("begin", begin_function_type(&::RF24Network::begin), (bp::arg("_channel"), bp::arg("_node_address"))); } + { //::RF24Network::begin + typedef void (::RF24Network::*begin_function_type)(::uint16_t); + RF24Network_exposer.def("begin", begin_function_type(&::RF24Network::begin), (bp::arg("_node_address"))); + } { //::RF24Network::parent typedef ::uint16_t (::RF24Network::*parent_function_type)() const; RF24Network_exposer.def("parent", parent_function_type(&::RF24Network::parent));