diff --git a/data_embed/index.html b/data_embed/index.html
index ff42403..ffd53b4 100644
--- a/data_embed/index.html
+++ b/data_embed/index.html
@@ -480,8 +480,8 @@
placeholder="0.0"
class="form-control"
step="0.1"
- min="-5.0"
- max="5.0"
+ min="-5"
+ max="5"
/>
Celsius
Volts= sendCommentAfterXBeacons) {
- if (comment != "") packet += comment;
- if (Config.battery.sendVoltage && Config.battery.voltageAsTelemetry) packet += BATTERY_Utils::generateEncodedTelemetry(batteryVoltage.toFloat());
- updateCounter = 0;
+ if (shouldSleepLowVoltage) {
+ packet += " **LowVoltagePowerOff**";
+ } else {
+ if (comment != "" || (Config.battery.sendVoltage && Config.battery.voltageAsTelemetry)) {
+ updateCounter++;
+ if (updateCounter >= sendCommentAfterXBeacons) {
+ if (comment != "") packet += comment;
+ if (Config.battery.sendVoltage && Config.battery.voltageAsTelemetry) packet += BATTERY_Utils::generateEncodedTelemetry(batteryVoltage.toFloat());
+ updateCounter = 0;
+ }
}
}
#ifdef HAS_TFT
@@ -277,6 +287,11 @@ namespace STATION_Utils {
#endif
displayShow("<<< TX >>>", "", packet,100);
LoRa_Utils::sendNewPacket(packet);
+
+ if (shouldSleepLowVoltage) {
+ delay(3000);
+ POWER_Utils::shutdown();
+ }
if (smartBeaconActive) {
lastTxLat = gps.location.lat();
@@ -292,11 +307,6 @@ namespace STATION_Utils {
if (currentBeacon->gpsEcoMode) {
gpsShouldSleep = true;
}
- #if !defined(HAS_AXP192) && !defined(HAS_AXP2101) && defined(BATTERY_PIN)
- if (batteryVoltage.toFloat() < 3.0) {
- POWER_Utils::shutdown();
- }
- #endif
}
void checkTelemetryTx() {
diff --git a/src/web_utils.cpp b/src/web_utils.cpp
index 8258281..d52b49e 100644
--- a/src/web_utils.cpp
+++ b/src/web_utils.cpp
@@ -190,7 +190,7 @@ namespace WEB_Utils {
// WiFi AP
Config.wifiAP.password = request->getParam("wifiAP.password", true)->value();
- Config.wifiAP.active = true;//false; // when Configuration is finished Tracker returns to normal mode.
+ Config.wifiAP.active = false; // when Configuration is finished Tracker returns to normal mode.
Config.writeFile();