Skip to content

Commit

Permalink
MicroBitLog: getNumberOfRows(n): Fixed bug associated with last commi…
Browse files Browse the repository at this point in the history
…t behaviour change.
  • Loading branch information
KierPalin committed May 22, 2024
1 parent d6cfc89 commit cc0f4ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/MicroBitLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ uint32_t MicroBitLog::getNumberOfRows(uint32_t fromRowIndex)
uint32_t rowCount = 0;

uint32_t end = dataStart;
bool startFound = false;
bool startRowFound = (fromRowIndex == 0) ? true : false;

// Read read until we see a 0xFF character (unused memory)
uint8_t c = 0;
Expand All @@ -1170,7 +1170,6 @@ uint32_t MicroBitLog::getNumberOfRows(uint32_t fromRowIndex)

if (!startFound)
return 0;

return rowCount;
}

Expand Down

0 comments on commit cc0f4ed

Please sign in to comment.