在异步串口接收·数据时,能不能在接收到指定数量的数据后跳出主函数的无限循环进而对接收到的数据做其他算法处理,而不是一直处在接收数据的状态
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.
跳出主函数的无限循环
可以设置一个判断条件,break跳出循环。