diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 94d80d0d..ae584678 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2998,6 +2998,7 @@ exports.motorAction = async (req, reply) => { ); + clearInterval(motorIntervals[motorId]); // Stop the motor if condition met delete motorIntervals[motorId]; // Remove from interval object