event log char counter is 2 bytes to exceed 255

This commit is contained in:
Paul
2019-10-03 21:25:07 +02:00
parent d9e40253f0
commit ea0cbda068

View File

@@ -1673,13 +1673,13 @@ bool MyESP::_fs_validateLogFile(const char * filename) {
// parse it to check JSON validity // parse it to check JSON validity
// its slow but the only reliable way to check integrity of the file // its slow but the only reliable way to check integrity of the file
uint8_t char_count = 0; uint16_t char_count = 0;
bool abort = false; bool abort = false;
char char_buffer[MYESP_JSON_LOG_MAXSIZE]; char char_buffer[MYESP_JSON_LOG_MAXSIZE];
char c; char c;
StaticJsonDocument<MYESP_JSON_LOG_MAXSIZE> doc; StaticJsonDocument<MYESP_JSON_LOG_MAXSIZE> doc;
eventlog.seek(0); // eventlog.seek(0);
while (eventlog.available() && !abort) { while (eventlog.available() && !abort) {
c = eventlog.read(); // read a char c = eventlog.read(); // read a char