mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
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:
parent
5e72c4febd
commit
21eb2de086
@ -60,7 +60,7 @@ main(int argc, char **argv)
|
|||||||
comm->configure ();
|
comm->configure ();
|
||||||
comm->setSpeedRate (upm::NRF_250KBPS);
|
comm->setSpeedRate (upm::NRF_250KBPS);
|
||||||
comm->setChannel (99);
|
comm->setChannel (99);
|
||||||
comm->dataRecievedHandler = nrf_handler;
|
comm->setDataReceivedHandler (nrf_handler);
|
||||||
|
|
||||||
signal(SIGINT, sig_handler);
|
signal(SIGINT, sig_handler);
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ main(int argc, char **argv)
|
|||||||
comm->setPayload (MAX_BUFFER);
|
comm->setPayload (MAX_BUFFER);
|
||||||
comm->setChannel (99);
|
comm->setChannel (99);
|
||||||
comm->configure ();
|
comm->configure ();
|
||||||
comm->dataRecievedHandler = nrf_handler;
|
comm->setDataReceivedHandler (nrf_handler);
|
||||||
|
|
||||||
signal(SIGINT, sig_handler);
|
signal(SIGINT, sig_handler);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user