Skip to content

Commit

Permalink
Merge pull request #5 from HMGrunthos/master
Browse files Browse the repository at this point in the history
Fixed a bug in readRowsBetween
  • Loading branch information
bitmario authored Nov 12, 2020
2 parents c84e855 + 3e4609c commit 21e88ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SPIFFSLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ size_t SPIFFSLogger<T>::readRowsBetween(SPIFFSLogData<T> *output, time_t fromTim
hits++;
if (hits > startIdx)
{
SPIFFSLogData<T> *curOutput = output + (copied * sizeof(SPIFFSLogData<T>));
SPIFFSLogData<T> *curOutput = output + copied;

// copy the timestamp
memcpy(curOutput, &currentTime, sizeof(time_t));
Expand Down

0 comments on commit 21e88ca

Please sign in to comment.