From b9772bc9f9538e681e5b04d824c1bba1f8ca6f4a Mon Sep 17 00:00:00 2001 From: Cosmin Deaconu Date: Thu, 16 Jun 2022 12:31:07 -0500 Subject: [PATCH] higher default for revE --- shared/config_block.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/shared/config_block.c b/shared/config_block.c index 9a29b86..bde26da 100644 --- a/shared/config_block.c +++ b/shared/config_block.c @@ -33,8 +33,13 @@ static application_cfg_t dflt_ac = .lte_stats_interval = 60, .lora_stats_interval = 60, .lora_stats_interval_low_power_mode = 600, +#ifdef _RNO_REV_D .turnon_voltage = 13, .turnoff_voltage = 12 +#else + .turnon_voltage = 30, + .turnoff_voltage = 20 +#endif }; @@ -92,6 +97,13 @@ int verify_app_cfg(application_cfg_t* ac) ac->turnoff_voltage = dflt_ac.turnoff_voltage; changed++; } +#ifndef _RNO_G_REV_D + if (ac->turnon_voltage < 20) + { + ac->turnon_voltage = 30; + changed++; + } +#endif if (ac->timesync_interval == -1) { ac->timesync_interval = 4*3600;