Skip to content

Commit

Permalink
updates wrapper definition
Browse files Browse the repository at this point in the history
  • Loading branch information
joernesdohr committed Nov 12, 2015
1 parent 84f8dff commit e9846e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions RPi/pyRF24Network/pyRF24Network.python3.2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "boost/python.hpp"

#include "RF24Network/RF24Network.h"
#include "RF24/RF24.h"
#include "RF24Network/RF24Network.h"

namespace bp = boost::python;

Expand Down Expand Up @@ -131,9 +130,9 @@ BOOST_PYTHON_MODULE(RF24Network){
}
{ //::RF24Network::write

typedef bool ( *write_function_type )( ::RF24Network&, ::RF24NetworkHeader&, std::string ) ;
typedef bool ( *write_function_type )( ::RF24Network&, ::RF24NetworkHeader&, bp::object ) ;

RF24Network_exposer.def("write", write_function_type( &write_wrap ), ( bp::arg("header"), bp::arg("message") ) );
RF24Network_exposer.def("write", write_function_type( &write_wrap ), ( bp::arg("header"), bp::arg("buf") ) );

}
RF24Network_exposer.def_readwrite( "txTimeout", &RF24Network::txTimeout );
Expand Down

0 comments on commit e9846e4

Please sign in to comment.