From 0ba2d740f5166b7c4f4d7218189b36b75b21fce9 Mon Sep 17 00:00:00 2001 From: Varun Date: Tue, 18 Mar 2025 13:13:53 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 1 + 1 file changed, 1 insertion(+) 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