Skip to content

Commit b8ab66d

Browse files
committed
examples: lora: Use C++ reinterpret_cast
Signed-off-by: Alistair Francis <[email protected]>
1 parent 207aba9 commit b8ab66d

File tree

1 file changed

+1
-1
lines changed
  • examples/lora/sensor-receive

1 file changed

+1
-1
lines changed

examples/lora/sensor-receive/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int main(void) {
5050
// Ensure there are no pending callbacks
5151
yield_no_wait();
5252

53-
state = radio->receive((uint8_t*)buffer, BUFFER_LEN);
53+
state = radio->receive(reinterpret_cast<uint8_t*> (buffer), BUFFER_LEN);
5454

5555
if (state == RADIOLIB_ERR_NONE) {
5656
// the packet was successfully transmitted

0 commit comments

Comments
 (0)