Skip to content

Commit 3178e06

Browse files
author
ficeto
committed
clean unused defines and typos
1 parent 6e6b26b commit 3178e06

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs_esp8266.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size ){
159159

160160
//shorthand when start and end addresses of the sector are not needed
161161
uint32_t flashmem_get_sector_of_address( uint32_t addr ){
162-
return (addr - INTERNAL_FLASH_START_ADDRESS) / INTERNAL_FLASH_SECTOR_SIZE;;
162+
return (addr - INTERNAL_FLASH_START_ADDRESS) / INTERNAL_FLASH_SECTOR_SIZE;
163163
}
164164

hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs_esp8266.h

-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ The small 4KB sectors allow for greater flexibility in applications that require
2424
#define SPIFFS_API_DBG_V(fmt, ...) //os_printf(fmt, ##__VA_ARGS__)
2525
#define SPIFFS_API_DBG_E(fmt, ...) //os_printf("ERROR: " fmt , ##__VA_ARGS__)
2626

27-
#define INTERNAL_FLASH_PAGE_SIZE 256
2827
#define INTERNAL_FLASH_SECTOR_SIZE 4096
2928
#define INTERNAL_FLASH_START_ADDRESS 0x40200000
3029

@@ -34,7 +33,6 @@ The small 4KB sectors allow for greater flexibility in applications that require
3433
extern uint32_t flashmem_write( const void *from, uint32_t toaddr, uint32_t size );
3534
extern uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size );
3635
extern bool flashmem_erase_sector( uint32_t sector_id );
37-
uint32_t flashmem_find_sector( uint32_t address, uint32_t *pstart, uint32_t *pend );
3836
uint32_t flashmem_get_sector_of_address( uint32_t addr );
3937

4038
#ifdef __cplusplus

0 commit comments

Comments
 (0)