This commit is contained in:
e2002
2023-06-07 14:48:39 +03:00
parent caa5cb78c7
commit b2a4eb8707
7 changed files with 36 additions and 7 deletions

View File

@@ -15,6 +15,9 @@
#ifndef MIN_MALLOC
#define MIN_MALLOC 24112
#endif
#ifndef NSQ_SEND_DELAY
#define NSQ_SEND_DELAY (TickType_t)100 //portMAX_DELAY?
#endif
#ifdef USE_SD
#define CARDLOCK() sdog.tm()
@@ -710,11 +713,11 @@ void NetServer::requestOnChange(requestType_e request, uint8_t clientId) {
nsRequestParams_t nsrequest;
nsrequest.type = request;
nsrequest.clientId = clientId;
xQueueSend(nsQueue, &nsrequest, portMAX_DELAY);
xQueueSend(nsQueue, &nsrequest, NSQ_SEND_DELAY);
}
void NetServer::resetQueue(){
xQueueReset(nsQueue);
if(nsQueue!=NULL) xQueueReset(nsQueue);
}
String processor(const String& var) { // %Templates%