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:
parent
d8f23c58da
commit
71486beb16
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user