Update main.cpp
This commit is contained in:
parent
b16b6902d7
commit
8a19674b0e
1 changed files with 10 additions and 10 deletions
20
src/main.cpp
20
src/main.cpp
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue