提交 3400a790 编写于 作者: sssanton's avatar sssanton 提交者: mysterywolf

Update at_utils.c

如果打印格式为"%02X"的数据大于0x7F,打印的数据就会在前面多出6个'F',原因详见https://blog.csdn.net/zqxwce821/article/details/53011925。
现在通过强制转换成unsigned char后,在STM32(KEIL5+C99)已测试确认能修复该问题。
上级 d277ee2e
...@@ -36,7 +36,7 @@ void at_print_raw_cmd(const char *name, const char *buf, rt_size_t size) ...@@ -36,7 +36,7 @@ void at_print_raw_cmd(const char *name, const char *buf, rt_size_t size)
{ {
if (i + j < size) if (i + j < size)
{ {
rt_kprintf("%02X ", buf[i + j]); rt_kprintf("%02X ", (unsigned char)buf[i + j]);
} }
else else
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册