homebridge-xbox-tv 3.7.11-beta.21 → 3.7.11-beta.22

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.7.11-beta.21",
4
+ "version": "3.7.11-beta.22",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -201,7 +201,7 @@ class XboxLocalApi extends EventEmitter {
201
201
  this.heartBeatStartTime = Date.now();
202
202
 
203
203
  // get message type in hex
204
- const messageTypeHex = message.subarray(0, 2).toString('hex');
204
+ const messageTypeHex = message.buffer.subarray(0, 2).toString('hex');
205
205
  if (this.enableDebugMode) this.emit('debug', `Received message type hex: ${messageTypeHex}`);
206
206
 
207
207
  // check message type exists