mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-28 16:52:33 +01:00
pruebas1
This commit is contained in:
@@ -646,7 +646,7 @@
|
||||
name="digi.mode"
|
||||
id="digi.mode"
|
||||
>
|
||||
<option value="0">off</option>
|
||||
<option value="0">OFF</option>
|
||||
<option value="2">
|
||||
WIDE1 (fill-in) Digi
|
||||
</option>
|
||||
@@ -659,16 +659,18 @@
|
||||
<label
|
||||
for="digi.ecoMode"
|
||||
class="form-label"
|
||||
>Eco Modes</label
|
||||
>Eco Mode</label
|
||||
>
|
||||
<select
|
||||
class="form-select form-select"
|
||||
name="digi.ecoMode"
|
||||
id="digi.ecoMode"
|
||||
>
|
||||
<option value="0">OFF</option>
|
||||
<option value="0">
|
||||
OFF (Normal Mode)
|
||||
</option>
|
||||
<option value="1">
|
||||
Ultra Eco Mode (Sleep until Packet Rx (WiFiAP/WebUI and Display disabled))
|
||||
Ultra Eco Mode (Sleep till Packet Rx (WiFiAP/WebUI & Display disabled))
|
||||
</option>
|
||||
<option value="2">
|
||||
OFF (Normal Mode without WiFiAP)
|
||||
|
||||
@@ -370,6 +370,7 @@ namespace APRS_IS_Utils {
|
||||
listenAPRSIS();
|
||||
}
|
||||
}
|
||||
if (Config.digi.ecoMode == 1) displayToggle(false);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -149,7 +149,7 @@ namespace DIGI_Utils {
|
||||
String loraPacket = generateDigipeatedPacket(packet.substring(3), thirdPartyPacket);
|
||||
if (loraPacket != "") {
|
||||
STATION_Utils::addToOutputPacketBuffer(loraPacket);
|
||||
displayToggle(true);
|
||||
if (Config.digi.ecoMode != 1) displayToggle(true);
|
||||
lastScreenOn = millis();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,7 +133,8 @@ namespace LoRa_Utils {
|
||||
}
|
||||
|
||||
#ifdef INTERNAL_LED_PIN
|
||||
if (Config.digi.ecoMode != 1) digitalWrite(INTERNAL_LED_PIN, HIGH); // disabled in Ultra Eco Mode
|
||||
//if (Config.digi.ecoMode != 1)
|
||||
digitalWrite(INTERNAL_LED_PIN, HIGH); // disabled in Ultra Eco Mode
|
||||
#endif
|
||||
int state = radio.transmit("\x3c\xff\x01" + newPacket);
|
||||
transmitFlag = true;
|
||||
@@ -148,7 +149,8 @@ namespace LoRa_Utils {
|
||||
Utils::println(String(state));
|
||||
}
|
||||
#ifdef INTERNAL_LED_PIN
|
||||
if (Config.digi.ecoMode != 1) digitalWrite(INTERNAL_LED_PIN, LOW); // disabled in Ultra Eco Mode
|
||||
//if (Config.digi.ecoMode != 1)
|
||||
digitalWrite(INTERNAL_LED_PIN, LOW); // disabled in Ultra Eco Mode
|
||||
#endif
|
||||
if (Config.loramodule.txFreq != Config.loramodule.rxFreq) {
|
||||
changeFreqRx();
|
||||
@@ -163,7 +165,7 @@ namespace LoRa_Utils {
|
||||
String packet = "";
|
||||
int state = radio.readData(packet);
|
||||
if (state == RADIOLIB_ERR_NONE) {
|
||||
//
|
||||
Utils::println("<--- LoRa Packet Rx : " + packet.substring(3));
|
||||
} else {
|
||||
packet = "";
|
||||
}
|
||||
|
||||
@@ -48,7 +48,9 @@ namespace SLEEP_Utils {
|
||||
}
|
||||
|
||||
void startSleeping() {
|
||||
esp_sleep_enable_timer_wakeup(getSecondsToSleep() * 1000000); // 1 min = 60sec
|
||||
uint32_t timeToSleep = getSecondsToSleep();
|
||||
esp_sleep_enable_timer_wakeup(timeToSleep * 1000000); // 1 min = 60sec
|
||||
Serial.print("(Sleeping : "); Serial.print(timeToSleep); Serial.println("seconds)");
|
||||
delay(100);
|
||||
LoRa_Utils::wakeRadio();
|
||||
esp_light_sleep_start();
|
||||
|
||||
Reference in New Issue
Block a user