[SX127x] Added missing cast

This commit is contained in:
jgromes 2022-07-10 20:35:49 +02:00
parent d8c11fa8c9
commit 31da00649c

View file

@ -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;