simulator: fix serial_write
printf("%s") will print a NULL terminated string, while rt_serial_write should print buffer for size length. This also fix segfault when the string is not null terminated but specified by size.
Showing
想要评论请 注册 或 登录