Skip to content

Commit 620cd38

Browse files
authored
[PUYA] Lower PUYA flash buffer to 1 page (256 B)
As discussed here: esp8266#5493 (comment)
1 parent ed5a14e commit 620cd38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cores/esp8266/Esp.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525

2626
#define PUYASUPPORT
2727
#ifndef PUYA_BUFFER_SIZE
28-
// Good alternative for buffer size is: SPI_FLASH_SEC_SIZE
29-
// 512 bytes is a reasonable trade-off between memory use and write cycles.
28+
// Good alternative for buffer size is: SPI_FLASH_SEC_SIZE (= 4k)
3029
// Always use a multiple of flash page size (256 bytes)
31-
#define PUYA_BUFFER_SIZE 512
30+
#define PUYA_BUFFER_SIZE 256
3231
#endif
3332

3433
/**

0 commit comments

Comments
 (0)