From 2f55e2dc81a3e4afc0a61447dbdb57e8d3d04f9e Mon Sep 17 00:00:00 2001 From: Varun Date: Mon, 24 Mar 2025 12:00:15 +0530 Subject: [PATCH] chyanges --- src/controllers/tanksController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index b8912aed..b575b40a 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6187,6 +6187,7 @@ async function processIotData(hw_Id, data) { inputConnection.motor_stop_status = "1"; inputConnection.motor_on_type = "manual"; inputConnection.stopTime = currentTime; + const motorId = hw_Id; if (motorIntervals[motorId]) { clearInterval(motorIntervals[motorId]); delete motorIntervals[motorId];