From 93907cf4ea10e9f1624b8b8816efdb134500c2da Mon Sep 17 00:00:00 2001 From: Timm Bogner <64260873+timmbogner@users.noreply.github.com> Date: Sat, 26 Nov 2022 14:17:08 -0600 Subject: [PATCH] small fix --- src/fdrs_lora.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fdrs_lora.h b/src/fdrs_lora.h index 1a5ea29..e66d6f2 100644 --- a/src/fdrs_lora.h +++ b/src/fdrs_lora.h @@ -121,7 +121,7 @@ crcResult getLoRa() { enableInterrupt = false; receivedFlag = false; - int packetSize = RADIOLIB_MODULE.getPacketLength(); + int packetSize = radio.getPacketLength(); if((((packetSize - 6) % sizeof(DataReading) == 0) || ((packetSize - 6) % sizeof(SystemPacket) == 0)) && packetSize > 0) { // packet size should be 6 bytes plus multiple of size of DataReading uint8_t packet[packetSize]; uint16_t packetCRC = 0x0000; // CRC Extracted from received LoRa packet @@ -129,7 +129,7 @@ crcResult getLoRa() { uint16_t sourceMAC = 0x0000; uint16_t destMAC = 0x0000; - RADIOLIB_MODULE.readBytes((uint8_t *)&packet, packetSize); + radio.readBytes((uint8_t *)&packet, packetSize); destMAC = (packet[0] << 8) | packet[1]; sourceMAC = (packet[2] << 8) | packet[3];