Skip to content

fix(desktop): custom baud rate bug - #91

Merged
wj-xiao merged 2 commits into
sipeed:mainfrom
imguoguo:fix-baudrate
Dec 16, 2025
Merged

fix(desktop): custom baud rate bug#91
wj-xiao merged 2 commits into
sipeed:mainfrom
imguoguo:fix-baudrate

Conversation

@imguoguo

Copy link
Copy Markdown
Member

Custom baud rates only take effect the second time they are set, and will not be used when the page is first loaded.

Custom baud rates only take effect the second time they are set, and will not be used when the page is first loaded.
setMsg('')

const success = await window.electron.ipcRenderer.invoke(IpcEvents.OPEN_SERIAL_PORT, port, baudRate)
const rate = customBaudRate ?? baudRate

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要排除 customBaudRate 为0的情况

@imguoguo
imguoguo requested a review from wj-xiao December 16, 2025 07:36
@wj-xiao
wj-xiao merged commit 9750fe2 into sipeed:main Dec 16, 2025
4 checks passed
MichaelRyom pushed a commit to MichaelRyom/NanoKVM-USB that referenced this pull request Mar 19, 2026
fix(desktop): custom baud rate bug
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