Skip to content

Add missing "reboot" command to the CLI text dispatcher - #3437

Closed
shleepong wants to merge 1 commit into
meshcore-dev:devfrom
shleepong:upstream/reboot-cli-fix
Closed

shleepong wants to merge 1 commit into
meshcore-dev:devfrom
shleepong:upstream/reboot-cli-fix

Conversation

@shleepong

Copy link
Copy Markdown

What

Adds a reboot branch to handleCommand() (the text dispatcher reached via CMD_RUN_CLI_COMMAND, used by BLE/WiFi/USB companion clients).

Why

handleCommand() had no reboot branch, so sending reboot over this path replied "Unknown command". CMD_REBOOT (a separate binary opcode) and checkCLIRescueCmd()'s own special-cased reboot handling both bypass handleCommand() entirely, so this gap was never noticed on those paths.

How

Matches the existing convention elsewhere (checkCLIRescueCmd()): calls board.reboot() directly, no reply attempted since it doesn't return.

Compile-verified against current dev (heltec_v4_companion_radio_ble).

🤖 Generated with Claude Code

handleCommand() (reached via CMD_RUN_CLI_COMMAND, used by BLE/WiFi/USB
companion clients) had no "reboot" branch, so it replied "Unknown
command". CMD_REBOOT (a separate binary opcode) and
checkCLIRescueCmd()'s own special-cased reboot handling both bypass
handleCommand() entirely, so this gap was never noticed on those paths.

Matches the existing convention elsewhere (checkCLIRescueCmd()): calls
board.reboot() directly, no reply attempted since it doesn't return.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@liamcottle

Copy link
Copy Markdown
Member

Hey there! Thanks for the PR! I'm opting to merge in my PR #3442 instead, to avoid all the AI generated comments, and also add the shutdown/poweroff commands.

@liamcottle liamcottle closed this Sep 18, 2026
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.

2 participants