Power saving sensor (#2865)

* Trunk

* Again

* This thing just keeps updating itself

* Ignore tools

* Sleepy sensor

* Batrunkadunk
This commit is contained in:
Ben Meadors
2023-10-05 12:42:03 -05:00
committed by GitHub
parent fc06754e1f
commit 950d5f0946
5 changed files with 40 additions and 21 deletions

View File

@@ -178,9 +178,9 @@ void PositionModule::sendOurPosition(NodeNum dest, bool wantReplies, uint8_t cha
service.sendToMesh(p, RX_SRC_LOCAL, true);
if (config.device.role == meshtastic_Config_DeviceConfig_Role_TRACKER && config.power.is_power_saving) {
LOG_DEBUG("Starting next execution in 3 seconds and then going to sleep.\n");
LOG_DEBUG("Starting next execution in 5 seconds and then going to sleep.\n");
sleepOnNextExecution = true;
setIntervalFromNow(3000);
setIntervalFromNow(5000);
}
}