Skip to content

Commit

Permalink
examples: lora: Use C++ reinterpret_cast
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Francis <[email protected]>
  • Loading branch information
alistair23 committed Oct 23, 2024
1 parent 207aba9 commit b8ab66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lora/sensor-receive/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t*> (buffer), BUFFER_LEN);

if (state == RADIOLIB_ERR_NONE) {
// the packet was successfully transmitted
Expand Down

0 comments on commit b8ab66d

Please sign in to comment.