correctif
Dependencies: mbed RF24Network RF24
Revision 9:046aeadeb6bc, committed 2021-05-25
- Comitter:
- Giamarchi
- Date:
- Tue May 25 14:02:02 2021 +0000
- Parent:
- 8:0736b94c8a51
- Commit message:
- new version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon May 24 13:38:38 2021 +0000 +++ b/main.cpp Tue May 25 14:02:02 2021 +0000 @@ -131,11 +131,13 @@ node.del++; payload_t payload_tx; payload_tx.src = this_node; - if(!BTN1) + payload_tx.data = node.del%5; + if(!BTN1) { payload_tx.dest = 00; - if(!BTN2) + } + if(!BTN2) { payload_tx.dest = 02; - payload_tx.data = node.del%5; + } pc.printf("Envoi..."); RF24NetworkHeader header_tx(other_node); // vers node "other_node"