From 9c2dad4eaf7cacaacf06fe402ad34298af6f0020 Mon Sep 17 00:00:00 2001 From: Bodong Yang Date: Wed, 17 Apr 2024 09:04:12 +0000 Subject: [PATCH] not merging available_ecu_ids from child ECUs status resp again --- otaclient/app/ota_client_stub.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/otaclient/app/ota_client_stub.py b/otaclient/app/ota_client_stub.py index 63298374f..2435b6c3a 100644 --- a/otaclient/app/ota_client_stub.py +++ b/otaclient/app/ota_client_stub.py @@ -516,11 +516,6 @@ async def update_from_child_ecu(self, status_resp: wrapper.StatusResponse): """Update the ECU status storage with child ECU's status report(StatusResponse).""" async with self._writer_lock: self.storage_last_updated_timestamp = cur_timestamp = int(time.time()) - _subecu_available_ecu_ids = _OrderedSet(status_resp.available_ecu_ids) - # discover further child ECUs from directly connected sub ECUs. - self._tracked_active_ecus.update(_subecu_available_ecu_ids) - # merge available_ecu_ids from child ECUs resp to include further child ECUs - self._available_ecu_ids.update(_subecu_available_ecu_ids) # NOTE: use v2 if v2 is available, but explicitly support v1 format # for backward-compatible with old otaclient