Update main.cpp

This commit is contained in:
Siwat Sirichai 2024-01-14 14:14:27 +07:00
parent b16b6902d7
commit 8a19674b0e

View file

@ -107,16 +107,16 @@ void setup()
Serial.print("boot_state.txt=\"Core Initializing . . .\"");
sendStopBytes();
espmega.begin();
if (clear_fram)
{
Serial.print("boot_state.txt=\"Factory Resetting . . .\"");
sendStopBytes();
for (uint16_t i = 0; i < 32768; i++)
{
espmega.fram.write8(i, 0);
}
esp_restart();
}
// if (clear_fram)
// {
// Serial.print("boot_state.txt=\"Factory Resetting . . .\"");
// sendStopBytes();
// for (uint16_t i = 0; i < 32768; i++)
// {
// espmega.fram.write8(i, 0);
// }
// esp_restart();
// }
Serial.print("boot_state.txt=\"IoT Initializing . . .\"");
sendStopBytes();
espmega.enableIotModule();