diff --git a/source/MicroBitLog.cpp b/source/MicroBitLog.cpp index e8948a4d..46557ddf 100644 --- a/source/MicroBitLog.cpp +++ b/source/MicroBitLog.cpp @@ -1168,6 +1168,9 @@ uint32_t MicroBitLog::getNumberOfRows(uint32_t fromRowIndex) end++; } + if (!startFound) + return 0; + return rowCount; }