mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-17 18:54:47 +01:00
deepSleep update
This commit is contained in:
parent
c5217842ff
commit
4cf3a333c9
|
|
@ -206,4 +206,8 @@ namespace LoRa_Utils {
|
|||
return packet;
|
||||
}
|
||||
|
||||
void sleepRadio() {
|
||||
radio.sleep();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -13,6 +13,7 @@ namespace LoRa_Utils {
|
|||
void changeFreqTx();
|
||||
void changeFreqRx();
|
||||
void startReceive(); // ???
|
||||
void sleepRadio();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include "boards_pinout.h"
|
||||
#include "syslog_utils.h"
|
||||
#include "A7670_utils.h"
|
||||
#include "lora_utils.h"
|
||||
#include "wifi_utils.h"
|
||||
#include "gps_utils.h"
|
||||
#include "bme_utils.h"
|
||||
|
|
@ -294,6 +295,8 @@ namespace Utils {
|
|||
digitalWrite(VEXT_CTRL, LOW);
|
||||
#endif
|
||||
#endif
|
||||
LoRa_Utils::sleepRadio();
|
||||
delay(100);
|
||||
esp_deep_sleep_start();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue