From 167d04aabb356443c64cd19aebd129f7a1777f3b Mon Sep 17 00:00:00 2001 From: Varun Date: Fri, 24 Jan 2025 11:04:18 +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 80166c42..f8b2f609 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -4949,6 +4949,7 @@ client.on('message', async (topic, message) => { console.log('Motor not found for the specified motor_id'); return; } + // Find the inputConnection for the motor and update motor status const inputConnection = motorTank.connections.inputConnections.find(conn => conn.motor_id === hw_Id); // Updated variable name