Skip to content

Serial.write和Serial.print函数输出0xAA会变成0xFFFD #94

@lable

Description

@lable

描述一下这个bug / Describe the bug

Serial.write和Serial.print函数输出0xAA会变成0xFFFD

复现步骤 / To Reproduce

Serial.write((unsigned char)0xAA);

(unsigned char) test[] = {0xAA};
Serial.write(( unsigned char*)test,sizeof(test));
Air001SerialPrint.zip

如果正常,应该是什么样 / Expected behavior

AA

截图 / Screenshots

324E63E8188FC7303B12C3CAA6E74812

日志 / Logs

---- 已打开串行端口 /dev/tty.usbmodem1102 ----
fffd

系统 / System

macos14 arm

PACK包版本 / Version

0.6.2

验证

  • 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions