diff --git a/src/LoRa.cpp b/src/LoRa.cpp index a16e55e..e48cc56 100644 --- a/src/LoRa.cpp +++ b/src/LoRa.cpp @@ -450,6 +450,11 @@ void LoRaClass::sleep() writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_SLEEP); } +void LoRaClass::deepSleep() +{ + writeRegister(REG_OP_MODE, MODE_SLEEP); +} + void LoRaClass::setTxPower(int level, int outputPin) { if (PA_OUTPUT_RFO_PIN == outputPin) { diff --git a/src/LoRa.h b/src/LoRa.h index a7002b4..7cb859f 100644 --- a/src/LoRa.h +++ b/src/LoRa.h @@ -67,6 +67,7 @@ class LoRaClass : public Stream { #endif void idle(); void sleep(); + void deepSleep(); void setTxPower(int level, int outputPin = PA_OUTPUT_PA_BOOST_PIN); void setFrequency(long frequency);