Skip to content

docs(cli): remove duplicate dc.gate section on observer - #10

Merged
Elektr0Vodka merged 3 commits into
dmc-observer-devfrom
fix/dmc-observer-dev-dc-gate-on-off
Sep 26, 2026
Merged

Elektr0Vodka merged 3 commits into
dmc-observer-devfrom
fix/dmc-observer-dev-dc-gate-on-off

Conversation

@Elektr0Vodka

@Elektr0Vodka Elektr0Vodka commented Sep 25, 2026 •

Copy link
Copy Markdown

Observer counterpart of #9 — now docs-only.

Update 2026-09-26

The code half of this PR (set dc.gate accepting on/off) reached dmc-observer-dev through the upstream sync, which merged dmc-dev (including #9) into the observer. That made this PR conflict. The branch now has the current dmc-observer-dev merged in, and what remains is the docs dedupe below.

Change

docs/cli_commands.md: the "Duty-cycle region gating" chapter appears twice on dmc-observer-dev (a merge leftover). This removes the stale copy (−65 lines), which still described the threshold as a % of wall-clock TX time and set dc.gate <0|1>. The remaining copy has #9's wording (on/off, "% of the duty-cycle budget", the "What the percentage measures" section) and keeps the observer-only region_gate MQTT note.

The merge also keeps the sync's other doc updates (radio/freq defaults, direct.txdelay, agc.reset.interval 0-1020, advert interval defaults).

Testing

  • The diff against dmc-observer-dev is docs/cli_commands.md only (0 insertions, 65 deletions); no source changes.
  • Checked that every line the observer docs contain appears in this version, except the removed duplicate (one paragraph in the kept copy was reworded to mention the region_gate MQTT block).

🤖 Generated with Claude Code

`set dc.gate` parsed its value with atoi(), so `set dc.gate on` evaluated
to 0 and silently disabled region gating while replying OK. It now accepts
on/off as well as 1/0 and rejects anything else with an error.

Docs (cli_commands.md): dc.gate.thresh, dc.gate.hyst and the duty in
`get dc.gate.status` are a percentage of the duty-cycle budget, not of
wall-clock time. Worked example for dutycycle 10.

Also removes the duplicated "Duty-cycle region gating" chapter left by an
earlier merge, keeping the observer-only region_gate MQTT notes in the
remaining copy.

(cherry picked from commit b12c3fa)
…ver-dev-dc-gate-on-off

docs/cli_commands.md: keep this branch's single deduped dc.gate section
(dmc-dev's PR #9 wording arrived via the observer merge and re-added the
duplicate); carry over the upstream doc updates from the sync (radio/freq
defaults, direct.txdelay, agc.reset.interval 0-1020, flood.advert.interval,
advert.interval zero-hop note).
@Elektr0Vodka Elektr0Vodka changed the title fix(cli): accept on/off for set dc.gate; clarify and dedupe dc.gate docs docs(cli): remove duplicate dc.gate section on observer Sep 26, 2026
@Elektr0Vodka
Elektr0Vodka merged commit 9805406 into dmc-observer-dev Sep 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant