skyeye-sdk-js 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/SkyEyeClient.js +5 -4
- package/package.json +1 -1
- package/src/SkyEyeClient.ts +5 -4
package/dist/src/SkyEyeClient.js
CHANGED
|
@@ -714,10 +714,11 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
|
|
|
714
714
|
}
|
|
715
715
|
setCpuRegisterValue(boardName, cpuName, registerName, value) {
|
|
716
716
|
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
717
|
+
// 设置寄存器 无需板卡名称
|
|
718
|
+
// const deviceTree = await this.getDeviceTree();
|
|
719
|
+
// if (!deviceTree.boardMap.has(boardName)) {
|
|
720
|
+
// throw new SkyEyeSDKException("未能找到该板卡");
|
|
721
|
+
// }
|
|
721
722
|
// const board: Board = boardMap.get(boardName);
|
|
722
723
|
// const deviceMap = board.deviceMap;
|
|
723
724
|
// if (!deviceMap.has(cpuName) || !(deviceMap.get(cpuName) instanceof Cpu)) {
|
package/package.json
CHANGED
package/src/SkyEyeClient.ts
CHANGED
|
@@ -633,10 +633,11 @@ export class SkyEyeClient extends JSONTransmissionClient {
|
|
|
633
633
|
|
|
634
634
|
|
|
635
635
|
public async setCpuRegisterValue(boardName: string, cpuName: string, registerName: string, value: string) {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
636
|
+
// 设置寄存器 无需板卡名称
|
|
637
|
+
// const deviceTree = await this.getDeviceTree();
|
|
638
|
+
// if (!deviceTree.boardMap.has(boardName)) {
|
|
639
|
+
// throw new SkyEyeSDKException("未能找到该板卡");
|
|
640
|
+
// }
|
|
640
641
|
// const board: Board = boardMap.get(boardName);
|
|
641
642
|
// const deviceMap = board.deviceMap;
|
|
642
643
|
// if (!deviceMap.has(cpuName) || !(deviceMap.get(cpuName) instanceof Cpu)) {
|