增加文件系统
This commit is contained in:
@@ -46,10 +46,11 @@ void net_task_func(void const *arg)
|
||||
(void)arg;
|
||||
|
||||
osDelay(2000);
|
||||
DBG_INFO("netTask: started");
|
||||
DBG_INFO("netTask: started, processing messages");
|
||||
|
||||
for (;;) {
|
||||
net_poll();
|
||||
net_process_messages();
|
||||
|
||||
#ifdef ENABLE_PHASE4_TESTS
|
||||
for (int i = 1; i < 8; i++) {
|
||||
@@ -58,9 +59,9 @@ void net_task_func(void const *arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
int n = net_recv(i, s_net_buf, sizeof(s_net_buf), NET_MSG_DONTWAIT);
|
||||
int n = net_recv_sock(p_sk, s_net_buf, sizeof(s_net_buf), NET_MSG_DONTWAIT);
|
||||
if (n > 0) {
|
||||
net_send(i, s_net_buf, n, 0);
|
||||
net_send_sock(p_sk, s_net_buf, n);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user