nrf24l01: updated receive/transmit examples to match new C++ API

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2015-09-18 15:47:19 -07:00
parent 5e72c4febd
commit 21eb2de086
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ main(int argc, char **argv)
comm->configure ();
comm->setSpeedRate (upm::NRF_250KBPS);
comm->setChannel (99);
comm->dataRecievedHandler = nrf_handler;
comm->setDataReceivedHandler (nrf_handler);
signal(SIGINT, sig_handler);

View File

@ -58,7 +58,7 @@ main(int argc, char **argv)
comm->setPayload (MAX_BUFFER);
comm->setChannel (99);
comm->configure ();
comm->dataRecievedHandler = nrf_handler;
comm->setDataReceivedHandler (nrf_handler);
signal(SIGINT, sig_handler);