Commit 9b63e1a5 authored by martin hou's avatar martin hou

feat: added compatibility with model recognition

parent 2741a65a
...@@ -113,7 +113,7 @@ function Jensen(log) { ...@@ -113,7 +113,7 @@ function Jensen(log) {
await device.selectConfiguration(1); await device.selectConfiguration(1);
await device.claimInterface(0); await device.claimInterface(0);
await device.selectAlternateInterface(0, 0); await device.selectAlternateInterface(0, 0);
self.model = device.productId == 45069 ? 'hidock-h1e' : 'hidock-h1'; self.model = device.productId == 0xB00C ? 'hidock-h1' : device.productId == 0xB00D ? 'hidock-h1e' : device.productId == 0xB00E ? 'hidock-p1' : 'unknown';
} catch (e) { } catch (e) {
Logger.error('jensen', 'setup', String(e)); Logger.error('jensen', 'setup', String(e));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment