Skip to content

fix: show hdc devices when one target fails to parse - #30

Open
tonycoder-hub wants to merge 2 commits into
liriliri:masterfrom
tonycoder-hub:cursor/fix-hdc-get-targets-e0e0
Open

fix: show hdc devices when one target fails to parse#30
tonycoder-hub wants to merge 2 commits into
liriliri:masterfrom
tonycoder-hub:cursor/fix-hdc-get-targets-e0e0

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Fixes #21

getTargets used Promise.all().catch(() => []), so any getParameters or version-parse error wiped the entire device list. Isolate failures per target and parse software version defensively.

No-device unit tests.

Signed-off-by: Tony Coder 407243179@qq.com

getTargets used Promise.all().catch(() => []), so any
getParameters or version-parse error wiped the entire device
list. Isolate failures per target and parse software version
defensively.

Fixes liriliri#21

Signed-off-by: Tony Coder <407243179@qq.com>
Use an explicit .ts import and drop the types-path alias so
npm test runs without a device or extra test runner.

Signed-off-by: Tony Coder <407243179@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

工具扫描不到设备

1 participant