RT-Thread / RT-Thread/rt-thread
[Bug] 在串口V2的驱动里面,_serial_poll_tx 这个函数里面,为什么要判断if (putc_result < 0) break;,这样会导致发送中文错误。
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
RT-Thread Version
5.2.2
Hardware Type/Architectures
hpm6750
Develop Toolchain
Other
Describe the bug
Other additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Serial V2 driver’s _serial_poll_tx function and inspect how putc_result is interpreted. Compare the 5.0.2 and 5.2.2 behavior shown in the report, then check the HPM6750 BSP’s putc return value. Done means the return-value contract is clear and Chinese transmission no longer loses data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100