Skip to content

Commit

Permalink
fix: Device Info carries slot count and not unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Sep 24, 2019
1 parent 7d8b254 commit 0a8a09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/deviceInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AbstractCommand } from './abstractCommand'
export interface DeviceInfoCommandResponse {
protocolVersion: number
model: string
uniqueId: string
slots: string
}

export class DeviceInfoCommand extends AbstractCommand {
Expand All @@ -15,7 +15,7 @@ export class DeviceInfoCommand extends AbstractCommand {
const res: DeviceInfoCommandResponse = {
protocolVersion: parseFloat(msg.params['protocol version']),
model: msg.params['model'],
uniqueId: msg.params['unique id']
slots: msg.params['slot count']
}
return res
}
Expand Down

0 comments on commit 0a8a09e

Please sign in to comment.