Skip to content

Commit

Permalink
Modify printf in example
Browse files Browse the repository at this point in the history
Change %lu to %u
  • Loading branch information
TMRh20 committed Feb 16, 2024
1 parent 463dbb9 commit 99d77b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples_RPi/helloworld_rx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ int main(int argc, char** argv)
delay(5);
radio.setChannel(90);
network.begin(/*node address*/ this_node);
radio.setPALevel(RF24_PA_HIGH,0);
radio.printDetails();

while (1) {
Expand All @@ -56,7 +57,7 @@ int main(int argc, char** argv)
payload_t payload;
network.read(header, &payload, sizeof(payload));

printf("Received payload: counter=%lu, origin timestamp=%lu\n", payload.counter, payload.ms);
printf("Received payload: counter=%u, origin timestamp=%u\n", payload.counter, payload.ms);
}
//sleep(2);
delay(2000);
Expand Down

0 comments on commit 99d77b1

Please sign in to comment.