Skip to content

Commit 7f41fbc

Browse files
authored
Code cleanup
FLASH_SECTOR_SIZE defined in terms of SPI_FLASH_SEC_SIZE (issue esp8266#2421).
1 parent c51c7b4 commit 7f41fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/flash_utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int SPIRead(uint32_t addr, void *dest, size_t size);
3131
int SPIWrite(uint32_t addr, void *src, size_t size);
3232
int SPIEraseAreaEx(const uint32_t start, const uint32_t size);
3333

34-
#define FLASH_SECTOR_SIZE 0x1000
34+
#define FLASH_SECTOR_SIZE SPI_FLASH_SEC_SIZE
3535
#define FLASH_BLOCK_SIZE 0x10000
3636
#define APP_START_OFFSET 0x1000
3737

0 commit comments

Comments
 (0)