This commit is contained in:
yrx
2026-08-14 15:25:35 +08:00
parent e1f12ae609
commit 9be7cffbb2
86 changed files with 32670 additions and 3 deletions
+11
View File
@@ -2426,6 +2426,17 @@ class NetworkManager:
sent_event = item[2] if len(item) > 2 else None
item_is_terminal = len(item) > 3 and item[3] == "terminal"
terminal_result = item[4] if item_is_terminal and len(item) > 4 else None
if (
isinstance(data_dict, dict)
and data_dict.get("cmd") == 1
and isinstance(data_dict.get("data"), dict)
):
shot_data = data_dict["data"]
self.logger.info(
f"[REPORT-TX] shot_id={shot_data.get('shot_id')}, "
f"target_class={shot_data.get('target_class')}, "
f"confidence={shot_data.get('target_class_confidence')}"
)
pkt = self._netcore.make_packet(msg_type, data_dict)
send_ok = (
self._tcp_send_terminal_raw(pkt)