From 71486beb16821fb1f674dee18d5065ec602607e4 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 16 Aug 2021 22:27:50 +0100 Subject: [PATCH] Stop loco on DONE/KILL --- RMFT2.cpp | 1 + 1 file changed, 1 insertion(+) 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) {