Added new map report opt-in for compliance and limit map report (and default) to one hour (#6813)

* Added new map report opt-in for compliance and limit map report (and default) to one hour

* Trunk
This commit is contained in:
Ben Meadors
2025-05-14 15:31:28 -05:00
committed by GitHub
parent fc64bea698
commit 7cffd9ba70
5 changed files with 12 additions and 4 deletions

View File

@@ -328,6 +328,11 @@ NodeDB::NodeDB()
moduleConfig.telemetry.health_update_interval = Default::getConfiguredOrMinimumValue(
moduleConfig.telemetry.health_update_interval, min_default_telemetry_interval_secs);
}
if (moduleConfig.mqtt.has_map_report_settings &&
moduleConfig.mqtt.map_report_settings.publish_interval_secs < default_map_publish_interval_secs) {
moduleConfig.mqtt.map_report_settings.publish_interval_secs = default_map_publish_interval_secs;
}
// Ensure that the neighbor info update interval is coerced to the minimum
moduleConfig.neighbor_info.update_interval =
Default::getConfiguredOrMinimumValue(moduleConfig.neighbor_info.update_interval, min_neighbor_info_broadcast_secs);