Skip to content

Commit 17f90a9

Browse files
author
Mario Falcao
committed
fix broken build
1 parent 3d79e01 commit 17f90a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPIFFSLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ size_t SPIFFSLogger<T>::readRows(SPIFFSLogData<T> *output, time_t date, size_t s
183183
return 0;
184184

185185
File f = SPIFFS.open(path, "r");
186-
maxCount = min(maxCount, (int32_t)(f.size() / sizeof(SPIFFSLogData<T>)) - (int32_t)startIdx);
186+
maxCount = min((int32_t)maxCount, (int32_t)(f.size() / sizeof(SPIFFSLogData<T>)) - (int32_t)startIdx);
187187
if (maxCount <= 0)
188188
return maxCount;
189189

0 commit comments

Comments
 (0)