diff --git a/RMFT2.cpp b/RMFT2.cpp index 6324711..735d016 100644 --- a/RMFT2.cpp +++ b/RMFT2.cpp @@ -279,6 +279,7 @@ RMFT2::RMFT2(int progCtr) { RMFT2::~RMFT2() { + driveLoco(1); // ESTOP my loco if any setFlag(taskId,0,TASK_FLAG); // we are no longer using this id if (next==this) loopTask=NULL; else for (RMFT2* ring=next;;ring=ring->next) if (ring->next == this) {