mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-w25qxxx.git
synced 2025-09-28 16:37:33 +00:00
fixed assert for start and end sector
This commit is contained in:
@@ -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
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user