diff --git a/src/SPIFFSLogger.h b/src/SPIFFSLogger.h index 05a2b7a..6def8c2 100644 --- a/src/SPIFFSLogger.h +++ b/src/SPIFFSLogger.h @@ -166,7 +166,7 @@ size_t SPIFFSLogger::readRowsBetween(SPIFFSLogData *output, time_t fromTim hits++; if (hits > startIdx) { - SPIFFSLogData *curOutput = output + (copied * sizeof(SPIFFSLogData)); + SPIFFSLogData *curOutput = output + copied; // copy the timestamp memcpy(curOutput, ¤tTime, sizeof(time_t));