diff --git a/src/LoRa.h b/src/LoRa.h index a7002b4..ba39133 100644 --- a/src/LoRa.h +++ b/src/LoRa.h @@ -21,7 +21,7 @@ #define LORA_DEFAULT_DIO0_PIN LORA_IRQ #else #define LORA_DEFAULT_SPI SPI -#define LORA_DEFAULT_SPI_FREQUENCY 8E6 +#define LORA_DEFAULT_SPI_FREQUENCY 8E6 #define LORA_DEFAULT_SS_PIN 10 #define LORA_DEFAULT_RESET_PIN 9 #define LORA_DEFAULT_DIO0_PIN 2 @@ -39,6 +39,7 @@ class LoRaClass : public Stream { int beginPacket(int implicitHeader = false); int endPacket(bool async = false); + bool isTransmitting(); int parsePacket(int size = 0); int packetRssi(); @@ -103,7 +104,6 @@ class LoRaClass : public Stream { void implicitHeaderMode(); void handleDio0Rise(); - bool isTransmitting(); int getSpreadingFactor(); long getSignalBandwidth();