uint8 *buffer = osal_mem_alloc(numBytes);
HalLcdWriteStringValueValue("length",osal_strlen((char *)buffer),10,numBytes,10,HAL_LCD_LINE_3);
RT,numBytes=1;---------------串口接收了一个字节
但是,osal_strlen((char *)buffer)是2!!!!为什么?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
uint8 *buffer = osal_mem_alloc(numBytes);
HalLcdWriteStringValueValue("length",osal_strlen((char *)buffer),10,numBytes,10,HAL_LCD_LINE_3);
RT,numBytes=1;---------------串口接收了一个字节
但是,osal_strlen((char *)buffer)是2!!!!为什么?