Closed SANTENO closed 2 years ago
.. instance creation - Watchdog MyDog; //Issue#8
setup: ... MyDog.enable(Watchdog::TIMEOUT_8S);
void: MyDog.reset(); at end of statemachine
in all manual up/downs:--> Mode 6
while ((digitalRead(BTN_UP) == 0) ) { //Hochfahren bei gedrücktem Schalter mysteps = MMklappe1.readstepcount(); MyDog.reset(); if (mysteps <= MAXSTEP){ MMklappe1.stepdrive(OPEN); }
Tested and forced up/down with display error -- did reset and then started again!
committed
A watchdog is required if the system crashes to recover.