Skip to content

Commit 9c439f8

Browse files
committed
FIx loophole with telemetry coercion
1 parent cf998f0 commit 9c439f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/mesh/NodeDB.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ NodeDB::NodeDB()
322322
// Uncomment below to always enable UDP broadcasts
323323
// config.network.enabled_protocols = meshtastic_Config_NetworkConfig_ProtocolFlags_UDP_BROADCAST;
324324

325-
// If we are setup to broadcast on the default channel, ensure that the telemetry intervals are coerced to the minimum value
326-
// of 30 minutes or more
327-
if (channels.isDefaultChannel(channels.getPrimaryIndex())) {
325+
// If we are setup to broadcast on any default channel slot (with default frequency slot semantics),
326+
// ensure that the telemetry intervals are coerced to the minimum value of 30 minutes or more.
327+
if (channels.hasDefaultChannel()) {
328328
LOG_DEBUG("Coerce telemetry to min of 30 minutes on defaults");
329329
moduleConfig.telemetry.device_update_interval = Default::getConfiguredOrMinimumValue(
330330
moduleConfig.telemetry.device_update_interval, min_default_telemetry_interval_secs);

0 commit comments

Comments
 (0)