From 31da00649cf3b32466fd033ef2c40c3e7f732006 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 10 Jul 2022 20:35:49 +0200 Subject: [PATCH] [SX127x] Added missing cast --- src/modules/SX127x/SX127x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 22013554..7426bf9d 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -484,7 +484,7 @@ bool SX127x::fifoAdd(uint8_t* data, int totalLen, volatile int* remLen) { bool SX127x::fifoGet(volatile uint8_t* data, int totalLen, volatile int* rcvLen) { // get pointer to the correct position in data buffer - uint8_t* dataPtr = &data[*rcvLen]; + uint8_t* dataPtr = (uint8_t*)&data[*rcvLen]; // check how much data are we still expecting uint8_t len = RADIOLIB_SX127X_FIFO_THRESH - 1;