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.
@@ -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
- const deviceTree = yield this.getDeviceTree();
718
- if (!deviceTree.boardMap.has(boardName)) {
719
- throw new SkyEyeSDKException_1.SkyEyeSDKException("未能找到该板卡");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skyeye-sdk-js",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "gRPC to SkyEye",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- const deviceTree = await this.getDeviceTree();
637
- if (!deviceTree.boardMap.has(boardName)) {
638
- throw new SkyEyeSDKException("未能找到该板卡");
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)) {