Add TAK Tracker role behavior (#3233)

* Proto

* Standalone TAK Tracker

* Add log

* Make TAK_Tracker behave like Tracker
This commit is contained in:
Ben Meadors
2024-02-16 20:04:21 -06:00
committed by GitHub
parent 1bacd8641d
commit 998013aff3
5 changed files with 70 additions and 5 deletions

View File

@@ -185,6 +185,7 @@ void cpuDeepSleep(uint32_t msecToWake)
// Don't enter this if we're sleeping portMAX_DELAY, since that's a shutdown event
if (msecToWake != portMAX_DELAY &&
(config.device.role == meshtastic_Config_DeviceConfig_Role_TRACKER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_TAK_TRACKER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_SENSOR) &&
config.power.is_power_saving == true) {
sd_power_mode_set(NRF_POWER_MODE_LOWPWR);