Skip to content

[feature request] It would be nice to have the Arduino IDE add a #define for the configured flash size #6806

Closed
@sprior

Description

@sprior

In cases where specific code depends on the existence of FS configured flash, it would be nice to have a #define available to prevent compilation/upload if the Flash config is misconfigured, especially in an OTA situation where this could prevent the device from booting.

For example if the code depends on saving device settings to SPIFFS and therefore booting is impossible with no FS configured, it would be great to be able to code a safety measure like:
#ifndef FS1MB
#error The Flash Config must be set to 1M FS
#endif

This would prevent an OTA upload where the device couldn't possibly boot afterwards and save a lot of hassle.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions