From 0d5b7df96a2ee186b7b085dca9cf9a33f791c430 Mon Sep 17 00:00:00 2001
From: graydon <weidong.gao@cretone.cn>
Date: 星期六, 30 八月 2025 20:27:15 +0800
Subject: [PATCH] 增加双USB
---
src/scene.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scene.cpp b/src/scene.cpp
index 13a930b..afcac4d 100644
--- a/src/scene.cpp
+++ b/src/scene.cpp
@@ -137,7 +137,7 @@
PhyPort* phy_id = (PhyPort*)(bin + size);
for(j = 0 ; j< ninports ;j ++, phy_id++) {
phy_id->mIntType = 0;
- phy_id->mPhyID = hw_adapter->get_physical_channel(1, j);
+ phy_id->mPhyID = hw_adapter->get_physical_channel(1, rxBufID[j]-1);
}
size += ninports*sizeof(PhyPort);
}
@@ -145,7 +145,7 @@
PhyPort* phy_id = (PhyPort*)(bin + size);
for(j = 0 ; j< noutports ;j ++, phy_id++) {
phy_id->mIntType = 0;
- phy_id->mPhyID = hw_adapter->get_physical_channel(0, j);
+ phy_id->mPhyID = hw_adapter->get_physical_channel(0, txBufID[j]-1);
}
size += noutports*sizeof(PhyPort);
}
--
Gitblit v1.9.3