mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
disable flash serialization by default on esp-idf
This commit is contained in:
@@ -43,8 +43,11 @@
|
|||||||
// frequent random disk access is slow. Data is still stored in and
|
// frequent random disk access is slow. Data is still stored in and
|
||||||
// accessed from memory - reading from disk is only done on startup.
|
// accessed from memory - reading from disk is only done on startup.
|
||||||
// When targeting ESP-IDF, LittleFS is used to manage flash reads and
|
// When targeting ESP-IDF, LittleFS is used to manage flash reads and
|
||||||
// writes. Consider increasing DISK_SYNC_INTERVAL if wear is a concern.
|
// writes. Flash is typically *very* slow and unreliable, which is why
|
||||||
|
// this option is disabled by default when targeting ESP-IDF.
|
||||||
|
#ifndef ESP_PLATFORM
|
||||||
#define SYNC_WORLD_TO_DISK
|
#define SYNC_WORLD_TO_DISK
|
||||||
|
#endif
|
||||||
// The minimum interval (in microseconds) at which certain data is written
|
// The minimum interval (in microseconds) at which certain data is written
|
||||||
// to disk/flash. Bounded on the low end by TIME_BETWEEN_TICKS. Currently
|
// to disk/flash. Bounded on the low end by TIME_BETWEEN_TICKS. Currently
|
||||||
// only applies to player data. Block changes are written as soon as they
|
// only applies to player data. Block changes are written as soon as they
|
||||||
|
Reference in New Issue
Block a user