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