Skip to content

Commit

Permalink
MicroBitLog: getNumberOfRows(n): Now returns 0 if n > number of rows.
Browse files Browse the repository at this point in the history
  • Loading branch information
KierPalin committed May 22, 2024
1 parent 4730de1 commit d6cfc89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/MicroBitLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,9 @@ uint32_t MicroBitLog::getNumberOfRows(uint32_t fromRowIndex)
end++;
}

if (!startFound)
return 0;

return rowCount;
}

Expand Down

0 comments on commit d6cfc89

Please sign in to comment.