Skip to content

fix(meshcore): clear channel slots omitted from apply payload#132

Merged
pskillen merged 1 commit into
mainfrom
bot-130/paddy/clear-unlisted-channel-slots
Jun 4, 2026
Merged

fix(meshcore): clear channel slots omitted from apply payload#132
pskillen merged 1 commit into
mainfrom
bot-130/paddy/clear-unlisted-channel-slots

Conversation

@pskillen
Copy link
Copy Markdown
Owner

@pskillen pskillen commented Jun 4, 2026

Summary

  • Before writing apply rows, scan the device and clear any named slot not in the apply payload (SET_CHANNEL with empty name + all-zero secret per companion protocol).
  • Makes the radio channel table match the Meshflow feeder mirror after push (fixes stale slots / duplicate hashtags — e.g. slot 6 retaining #glasgow when only slot 3 is in the payload).
  • Rebased on main after feat(meshcore): log DESIRED vs READBACK after channel apply #131 (apply DESIRED/READBACK verify logging) merged.

Closes #130

Testing performed

  • pytest test/meshcore/test_channels.py test/meshcore/test_channel_sync.py -q --no-cov
  • Manual apply on feeder: confirm unlisted slots cleared and READBACK shows no extra named channels

Before writing apply rows, scan the device and clear any named slot not
in the payload (SET_CHANNEL with empty name and zero secret per
companion protocol). Closes #130.
@pskillen pskillen merged commit 2f49e4d into main Jun 4, 2026
3 checks passed
@pskillen pskillen deleted the bot-130/paddy/clear-unlisted-channel-slots branch June 4, 2026 10:20
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.

Clear unlisted channel slots when applying MC channel config

2 participants