Skip to content

Commit 8153edb

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
use WDT_RESET macro in spiffs_flashmem methods
1 parent 0897f9e commit 8153edb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/spiffs/spiffs_flashmem.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ uint32_t flashmem_write_internal( const void *from, uint32_t toaddr, uint32_t si
184184
return 0;
185185
os_memcpy(apbuf, from, size);
186186
}
187-
WRITE_PERI_REG(0x60000914, 0x73);
187+
WDT_RESET();
188188
r = spi_flash_write(toaddr, apbuf?(uint32 *)apbuf:(uint32 *)from, size);
189189
if(apbuf)
190190
os_free(apbuf);
@@ -200,7 +200,7 @@ uint32_t flashmem_read_internal( void *to, uint32_t fromaddr, uint32_t size )
200200
{
201201
fromaddr -= INTERNAL_FLASH_START_ADDRESS;
202202
SpiFlashOpResult r;
203-
WRITE_PERI_REG(0x60000914, 0x73);
203+
WDT_RESET();
204204
r = spi_flash_read(fromaddr, (uint32 *)to, size);
205205
if(SPI_FLASH_RESULT_OK == r)
206206
return size;

0 commit comments

Comments
 (0)