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];