diff --git a/cores/esp8266/spiffs/spiffs_esp8266.c b/cores/esp8266/spiffs/spiffs_esp8266.c index 49d4b6840..7cd4fd684 100644 --- a/cores/esp8266/spiffs/spiffs_esp8266.c +++ b/cores/esp8266/spiffs/spiffs_esp8266.c @@ -159,6 +159,6 @@ uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size ){ //shorthand when start and end addresses of the sector are not needed uint32_t flashmem_get_sector_of_address( uint32_t addr ){ - return (addr - INTERNAL_FLASH_START_ADDRESS) / INTERNAL_FLASH_SECTOR_SIZE;; + return (addr - INTERNAL_FLASH_START_ADDRESS) / INTERNAL_FLASH_SECTOR_SIZE; } diff --git a/cores/esp8266/spiffs/spiffs_esp8266.h b/cores/esp8266/spiffs/spiffs_esp8266.h index a75e44312..cd1eb3544 100644 --- a/cores/esp8266/spiffs/spiffs_esp8266.h +++ b/cores/esp8266/spiffs/spiffs_esp8266.h @@ -24,7 +24,6 @@ The small 4KB sectors allow for greater flexibility in applications that require #define SPIFFS_API_DBG_V(fmt, ...) //os_printf(fmt, ##__VA_ARGS__) #define SPIFFS_API_DBG_E(fmt, ...) //os_printf("ERROR: " fmt , ##__VA_ARGS__) -#define INTERNAL_FLASH_PAGE_SIZE 256 #define INTERNAL_FLASH_SECTOR_SIZE 4096 #define INTERNAL_FLASH_START_ADDRESS 0x40200000 @@ -34,7 +33,6 @@ The small 4KB sectors allow for greater flexibility in applications that require extern uint32_t flashmem_write( const void *from, uint32_t toaddr, uint32_t size ); extern uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size ); extern bool flashmem_erase_sector( uint32_t sector_id ); -uint32_t flashmem_find_sector( uint32_t address, uint32_t *pstart, uint32_t *pend ); uint32_t flashmem_get_sector_of_address( uint32_t addr ); #ifdef __cplusplus