You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (device->state == PPP_STATE_PREPARE)
{
......
/* throw away the dirty data in the uart buffer */
rt_device_read(device->uart, 0, buffer, PPP_RECV_READ_MAX);
.....
}
在ppp_recv_entry中,模块拨号成功后,加了清理脏数据处理。如果真有脏的数据,这样最多也只能清理掉PPP_RECV_READ_MAX(32字节)长度的数据吧,如果RT_SERIAL_RB_BUFSZ比PPP_RECV_READ_MAX大,是清理不干净的
The text was updated successfully, but these errors were encountered: