Repository navigation
[1669] Enable Device Info Rename button for PSOC boards - #131
Merged
Merged
Conversation
Bryant Forsgren (bryantf-qc)
approved these changes
Oct 26, 2026
The Rename... button on the Device Info tab was permanently disabled and had no click handler, so a connected board could not be renamed from the GUI. Enable the button only when the connected device is a PSOC board, since that is the only drive thread that implements the set-name command; the PIC32CX, STM32 and FTDI drive threads ignore setName(). For other boards the button stays disabled with a tooltip explaining why. The click handler prompts for a new name, validates it against the firmware rules (1-32 alphanumeric characters) with a clear warning instead of the previous silent rejection, then refreshes the Device Name label from the device. The enable state is refreshed where the Device Info page is populated, leaving setDevice() and setPlatformConfiguration() untouched. Signed-off-by: hangzqcom <hangz@qti.qualcomm.com>
TACPIC32CXDriveThread::setName() validated the new name (length, changed, alphanumeric) and then only waited for completion; it never sent anything, so renaming a PIC32CX board through the API silently did nothing. TACPIC32CXCommand::setName() already builds the command but had no caller. Send it the same way the PSOC drive thread does. The PIC32CX path still has no reply handling that refreshes the cached name, so the Device Info Rename button stays PSOC-only; update the comment that claimed the other drive threads ignore setName(). Signed-off-by: hangzqcom <hangz@qti.qualcomm.com>
hangzqcom
force-pushed
the
fix/rename-button
branch
from
October 26, 2026 22:15
7f453da to
21eda16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Rename... button on the Device Info tab was permanently disabled in
TACFrame.uiand had no click handler, so a connected board could not be renamed from the GUI.Renaming a PIC32CX board through the API also silently did nothing.
TACPIC32CXDriveThread::setName()validated the new name, then only waited for completion. It never sent the set-name command.Root cause
The button was added in the initial import as a disabled placeholder with no slot connected, and was never implemented.
TACPIC32CXCommand::setName()builds the set-name command, but nothing called it. The PIC32CX drive thread skipped the send step that the PSOC drive thread performs.Fix
Two commits.
1. Enable Device Info Rename button for PSOC boards (
TACFrame.{h,cpp}; the.uifile is not touched)setName(), which blocks until the board replies, and refreshes the Device Name label.on__tabs_tabBarClicked).setDevice()andsetPlatformConfiguration()are not touched, so this does not conflict with [1589] Hide Reset Count controls unless the device supports it #130.2. Send the set-name command from the PIC32CX drive thread (
TACPIC32CXDriveThread.cpp)setNamethroughTACPIC32CXCommand, the same way the PSOC drive thread does.Testing
Before/after harness (no hardware)
TACFrameand libraries from each tree: develop31f3d72vs this branch.Bench01: no warningbad name!: warningResult: develop gets 6 cases wrong; this PR gets 0 wrong, before and after the PIC32CX commit.
Build
Not yet tested