Skip to content

Commit e59c059

Browse files
committed
Incorrect comments removed.
1 parent 8484467 commit e59c059

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

targets/TARGET_STM/TARGET_STM32L1/flash_api.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ int32_t flash_program_page(flash_t *obj, uint32_t address,
118118

119119
uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
120120
{
121-
/* considering 1 sector = 1 page */
122121
if ((address >= (FLASH_BASE + FLASH_SIZE)) || (address < FLASH_BASE)) {
123122
return MBED_FLASH_INVALID_SIZE;
124123
} else {
@@ -128,7 +127,6 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
128127

129128
uint32_t flash_get_page_size(const flash_t *obj)
130129
{
131-
/* considering 1 sector = 1 page */
132130
return FLASH_PAGE_SIZE;
133131
}
134132

0 commit comments

Comments
 (0)