From 99d77b1e2097acffce8dbbfa973fb5bc4e894dab Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Fri, 16 Feb 2024 04:40:35 -0600 Subject: [PATCH] Modify printf in example Change %lu to %u --- examples_RPi/helloworld_rx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples_RPi/helloworld_rx.cpp b/examples_RPi/helloworld_rx.cpp index b0300841..87678094 100644 --- a/examples_RPi/helloworld_rx.cpp +++ b/examples_RPi/helloworld_rx.cpp @@ -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) { @@ -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);