[SX127x] Added missing cast
This commit is contained in:
parent
d8c11fa8c9
commit
31da00649c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue