Fixes for new tpl engine, optimize memory.

This commit is contained in:
Magnus Persson
2022-08-05 09:38:10 +02:00
parent 45294f6b07
commit 68d44a5846
6 changed files with 63 additions and 18 deletions

View File

@ -63,7 +63,7 @@ void writeErrorLog(const char* format, ...) {
char buf[80];
vsnprintf(&buf[0], sizeof(buf), format, arg);
f.write(&buf[0], strlen(&buf[0]));
Log.error(&buf[0]);
Log.errorln(&buf[0]);
va_end(arg);
f.println();
f.close();