Skip to main content
2 of 2
added 40 characters in body
Juraj
  • 18.2k
  • 4
  • 30
  • 49

You can do an almost immediate full reset with watchdog by activating it 'on place'.

wdt_enable(WDTO_15MS); // resets the MCU after 15 milliseconds
while (true);

You can use millis() for timing the reset as any other timed function.

Juraj
  • 18.2k
  • 4
  • 30
  • 49