mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-04 14:08:36 +00:00
low external voltage RF Tx fix
This commit is contained in:
parent
db5710ec6a
commit
5dc6e99972
2 changed files with 11 additions and 2 deletions
|
|
@ -310,12 +310,12 @@ namespace Utils {
|
|||
|
||||
void checkSleepByLowBatteryVoltage(uint8_t mode) {
|
||||
if (shouldSleepLowVoltage) {
|
||||
if (mode == 0) {
|
||||
if (mode == 0) { // at startup
|
||||
delay(3000);
|
||||
}
|
||||
Serial.println("\n\n*** Sleeping Low Battey Voltage ***\n\n");
|
||||
esp_sleep_enable_timer_wakeup(30 * 60 * 1000000); // sleep 30 min
|
||||
if (mode == 1) {
|
||||
if (mode == 1) { // low voltage detected after a while
|
||||
displayToggle(false);
|
||||
}
|
||||
#ifdef VEXT_CTRL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue