JSON RAM optimization (update libs needed), HTTP

This commit is contained in:
Климов Андрей Николаевич
2023-04-09 21:37:37 +03:00
parent ec306c4934
commit bab472d2d1
11 changed files with 118 additions and 10 deletions

View File

@@ -8,6 +8,11 @@
#include "textconst.h"
#include "main.h"
#include "config.h"
#include "streamlog.h"
extern systemConfig sysConf;
extern bool disableCMD;
#ifndef AC_Serial
#define AC_Serial Serial3
#endif
@@ -237,6 +242,12 @@ debugSerial<<F("AC Init: ")<<portNum<<endl;
if (!portNum)// && (g_APinDescription[0].ulPinType == PIO_PA8A_URXD))
{
pinMode(0, INPUT_PULLUP);
#if debugSerial == Serial
infoSerial<<F("Serial used by AC - disabling serial logging and cmd")<<
sysConf.setSerialDebuglevel(0);
serialDebugLevel = 0;
disableCMD=true;
#endif
}
ACSerial->begin(9600);
item->itemArr->subtype = CST_INITIALIZED;