Closed
Description
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.