Skip to main content

If anyone want's to know how to do this, an example (using board="ESP32 Dev Module") is:

// #if ARDUINO_PARTITION_default // from boards.txt: "esp32.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)"
//  #error "please change to a larger Partition Scheme"
#if ARDUINO_PARTITION_no_ota // from boards.txt: "esp32.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)"
  Serial.println("ARDUINO_PARTITION_no_ota being used");
#else
  #error "wrong Partition Scheme has been selected"
#endif
// #if ARDUINO_PARTITION_default // from boards.txt: "esp32.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)"
//  #error "please change to a larger Partition Scheme"
#if ARDUINO_PARTITION_no_ota // from boards.txt: "esp32.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)"
  Serial.println("ARDUINO_PARTITION_no_ota being used");
#else
  #error "wrong Partition Scheme has been selected"
#endif

If anyone want's to know how to do this, an example (using board="ESP32 Dev Module") is:

// #if ARDUINO_PARTITION_default // from boards.txt: "esp32.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)"
//  #error "please change to a larger Partition Scheme"
#if ARDUINO_PARTITION_no_ota // from boards.txt: "esp32.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)"
  Serial.println("ARDUINO_PARTITION_no_ota being used");
#else
  #error "wrong Partition Scheme has been selected"
#endif

If anyone want's to know how to do this, an example (using board="ESP32 Dev Module") is:

// #if ARDUINO_PARTITION_default // from boards.txt: "esp32.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)"
//  #error "please change to a larger Partition Scheme"
#if ARDUINO_PARTITION_no_ota // from boards.txt: "esp32.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)"
  Serial.println("ARDUINO_PARTITION_no_ota being used");
#else
  #error "wrong Partition Scheme has been selected"
#endif

Source Link
Rob
  • 11
  • 2

If anyone want's to know how to do this, an example (using board="ESP32 Dev Module") is:

// #if ARDUINO_PARTITION_default // from boards.txt: "esp32.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)"
//  #error "please change to a larger Partition Scheme"
#if ARDUINO_PARTITION_no_ota // from boards.txt: "esp32.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)"
  Serial.println("ARDUINO_PARTITION_no_ota being used");
#else
  #error "wrong Partition Scheme has been selected"
#endif