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

@@ -2,6 +2,7 @@
#define STA_SENSORS_W25Q128_HPP
#include <sta/bus/spi/device.hpp>
//#include <sta/devices/stm32/bus/spi.hpp>
#include <sta/mutex.hpp>
#include <sta/drivers/w25qxx_defs.hpp>
@@ -333,4 +334,4 @@ namespace sta
} // namespace sta
#endif // STA_SENSORS_W25Q128_HPP
#endif // STA_SENSORS_W25Q128_HPP

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();