fixed assert for start and end sector

This commit is contained in:
Lars Wilko Sentse
2024-06-09 12:32:13 +02:00
parent 9fc8bc2b45
commit d6b16dbff1
3 changed files with 14 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ namespace sta
ptr_ {0}
{
STA_ASSERT(flash != nullptr);
STA_ASSERT(endAddr > startAddr);
STA_ASSERT(endSec > startSec);
// Jump to the last written page.
findLast();