Skip to content

Commit

Permalink
check cec message length when asking physical address
Browse files Browse the repository at this point in the history
  • Loading branch information
konikvranik committed Jan 23, 2017
1 parent e0729e6 commit 6743443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pycec/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def _update_power_status(self, command):

def _update_physical_address(self, command):
self._physical_address = PhysicalAddress(command.att[0:2])
self._type = command.att[2]
if len(command.att) > 2:
self._type = command.att[2]

def _update_audio_status(self, command):
self._mute_status = bool(command.att[0] & 0x80)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="pyCEC",
version="0.4.9",
version="0.4.10",
author="Petr Vraník",
author_email="hpa@suteren.net",
description=(
Expand Down

0 comments on commit 6743443

Please sign in to comment.