@@ -212,19 +212,20 @@ class EspClass {
212
212
213
213
static bool eraseConfig ();
214
214
215
- /*
216
- Erases 4 sectors at the end of flash, 1 - RF_CAL and 3 - SYSTEMPARM.
217
- These are the same additional sectors that are erase when you select
218
- Erase Flash: "Sketch + WiFi Settings" from the Arduino IDE Tools menu.
219
-
220
- As a precaution, since this operation erases the running SDKs flash
221
- configuration space, use reset flag "true" with eraseConfig. Also, for
222
- additional protection, call "WiFi.mode(WIFI_OFF)" before calling.
223
-
224
- If you need to erase "WiFi Settings" and reboot consider using
225
- "ArduinoOTA.eraseConfigAndReset()" it handles shutting down WiFi
226
- before the erase.
227
- */
215
+ /* *
216
+ * @brief Erases 4 sectors at the end of flash, 1 - RF_CAL and 3 - SYSTEMPARM.
217
+ * These are the same additional sectors that are erase when you select
218
+ * Erase Flash: "Sketch + WiFi Settings" from the Arduino IDE Tools menu.
219
+ *
220
+ * This operation erases the running SDK's flash configuration space.
221
+ * As a precaution before calling, first call "WiFi.mode(WIFI_OFF)."
222
+ *
223
+ * If you need to erase "WiFi Settings" and reboot consider using
224
+ * "ArduinoOTA.eraseConfigAndReset()" it handles shutting down WiFi
225
+ * before the erase.
226
+ * @return bool result of operation. Always False on return.
227
+ * Function does not return on success.
228
+ */
228
229
static bool eraseConfigAndReset ();
229
230
230
231
static uint8_t *random (uint8_t *resultArray, const size_t outputSizeBytes);
0 commit comments