mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-07 15:57:51 +01:00
temporary bl602 fix
This commit is contained in:
@@ -91,6 +91,10 @@ static void tcp_client_thread(beken_thread_arg_t arg)
|
||||
request.received = buf;
|
||||
request.receivedLenmax = INCOMING_BUFFER_SIZE - 2;
|
||||
request.responseCode = HTTP_RESPONSE_OK;
|
||||
#if PLATFORM_BL602
|
||||
request.receivedLen = recv(fd, request.received, request.receivedLenmax, 0);
|
||||
request.received[request.receivedLen] = 0;
|
||||
#else
|
||||
request.receivedLen = 0;
|
||||
while (1) {
|
||||
int remaining = request.receivedLenmax - request.receivedLen;
|
||||
@@ -111,6 +115,7 @@ static void tcp_client_thread(beken_thread_arg_t arg)
|
||||
}
|
||||
}
|
||||
request.received[request.receivedLen] = 0;
|
||||
#endif
|
||||
|
||||
request.reply = reply;
|
||||
request.replylen = 0;
|
||||
|
||||
Reference in New Issue
Block a user