mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-24 08:06:56 +01:00
Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App
This commit is contained in:
@@ -604,6 +604,7 @@ int HTTP_ProcessPacket(http_request_t* request) {
|
||||
ADDLOGF_ERROR("You gave request with NULL input");
|
||||
return 0;
|
||||
}
|
||||
request->method = -1;
|
||||
recvbuf = request->received;
|
||||
for (i = 0; i < sizeof(methodNames) / sizeof(*methodNames); i++) {
|
||||
if (http_startsWith(recvbuf, methodNames[i])) {
|
||||
|
||||
@@ -426,6 +426,10 @@ static int getData(char* buff, int buffsize, int* tail) {
|
||||
if (!initialised)
|
||||
return 0;
|
||||
taken = xSemaphoreTake(logMemory.mutex, 100);
|
||||
if (taken == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
count = 0;
|
||||
p = buff;
|
||||
|
||||
Reference in New Issue
Block a user