mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
event log char counter is 2 bytes to exceed 255
This commit is contained in:
@@ -1673,13 +1673,13 @@ bool MyESP::_fs_validateLogFile(const char * filename) {
|
||||
|
||||
// parse it to check JSON validity
|
||||
// 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;
|
||||
char char_buffer[MYESP_JSON_LOG_MAXSIZE];
|
||||
char c;
|
||||
StaticJsonDocument<MYESP_JSON_LOG_MAXSIZE> doc;
|
||||
|
||||
eventlog.seek(0);
|
||||
// eventlog.seek(0);
|
||||
while (eventlog.available() && !abort) {
|
||||
c = eventlog.read(); // read a char
|
||||
|
||||
|
||||
Reference in New Issue
Block a user