Skip to content

Commit 77b60f4

Browse files
Amir Cohen0xc0170
authored andcommitted
Add flashiap block device comment
1 parent 43f4e25 commit 77b60f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ const char *FlashIAPBlockDevice::get_type() const
258258

259259
bool FlashIAPBlockDevice::is_valid_erase(bd_addr_t addr, bd_size_t size) const
260260
{
261+
/* Calculate address alignment for the full flash */
261262
bd_addr_t base_addr = addr + (_base - _flash.get_flash_start());
262263

263264
return (

0 commit comments

Comments
 (0)