From f0b63eaf6890e1fdbfddf95cdc0f2575d9851a1f Mon Sep 17 00:00:00 2001 From: Timm Bogner <64260873+timmbogner@users.noreply.github.com> Date: Mon, 27 Feb 2023 08:27:41 -0600 Subject: [PATCH] Update fdrs_node_lora.h --- src/fdrs_node_lora.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fdrs_node_lora.h b/src/fdrs_node_lora.h index c52cb11..0f67a7d 100644 --- a/src/fdrs_node_lora.h +++ b/src/fdrs_node_lora.h @@ -138,8 +138,8 @@ crcResult handleLoRa() enableInterrupt = true; } } - return crcReturned; #endif // USE_LORA + return crcReturned; } void begin_lora() @@ -276,8 +276,8 @@ crcResult transmitLoRa(uint16_t *destMAC, DataReading *packet, uint8_t len) } transmitLoRaMsgwAck++; #endif // LORA_ACK - return crcReturned; #endif // USE_LORA + return crcReturned; } // For now SystemPackets will not use ACK but will calculate CRC @@ -321,8 +321,8 @@ crcResult transmitLoRa(uint16_t *destMAC, SystemPacket *packet, uint8_t len) while (true) ; } - return crcReturned; #endif // USE_LORA + return crcReturned; } // ****DO NOT CALL getLoRa() directly! ***** Call handleLoRa() instead! @@ -480,8 +480,8 @@ crcResult getLoRa() return CRC_NULL; } } - return CRC_NULL; #endif // USE_LORA + return CRC_NULL; } // FDRS Sensor pings gateway and listens for a defined amount of time for a reply @@ -508,8 +508,8 @@ uint32_t pingFDRSLoRa(uint16_t *address, uint32_t timeout) } } DBG("No LoRa ping returned within " + String(timeout) + "ms."); - return UINT32_MAX; #endif // USE_LORA + return UINT32_MAX; } void printLoraPacket(uint8_t *p, int size)