From b8ab66dd879b0fdbdae336f38cd4b7cc4f15f7ce Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Wed, 23 Oct 2024 10:24:08 +1000 Subject: [PATCH] examples: lora: Use C++ reinterpret_cast Signed-off-by: Alistair Francis --- examples/lora/sensor-receive/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lora/sensor-receive/main.cc b/examples/lora/sensor-receive/main.cc index 96139ec8b..a64046104 100644 --- a/examples/lora/sensor-receive/main.cc +++ b/examples/lora/sensor-receive/main.cc @@ -50,7 +50,7 @@ int main(void) { // Ensure there are no pending callbacks yield_no_wait(); - state = radio->receive((uint8_t*)buffer, BUFFER_LEN); + state = radio->receive(reinterpret_cast (buffer), BUFFER_LEN); if (state == RADIOLIB_ERR_NONE) { // the packet was successfully transmitted