diff --git a/src/LoRa.h b/src/LoRa.h index b312db5..c06ef71 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(); @@ -77,7 +78,7 @@ class LoRaClass : public Stream { void disableCrc(); void enableInvertIQ(); void disableInvertIQ(); - + void setOCP(uint8_t mA); // Over Current Protection control void setGain(uint8_t gain); // Set LNA gain @@ -99,7 +100,6 @@ class LoRaClass : public Stream { void implicitHeaderMode(); void handleDio0Rise(); - bool isTransmitting(); int getSpreadingFactor(); long getSignalBandwidth();