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)