1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-11 21:31:02 +01:00

Stop loco on DONE/KILL

This commit is contained in:
Asbelos 2021-08-16 22:27:50 +01:00
parent d8f23c58da
commit 71486beb16

View File

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