smarthall / python-lifx-sdk

An SDK for local LAN control of bulbs, using Python
MIT License
27 stars 9 forks source link

One small error noticed! #1

Closed edkelly303 closed 9 years ago

edkelly303 commented 9 years ago

In line 415:

payload_size = frame_address_struct.size - payload_start

Should be:

payload_size = frame_header_struct.size - payload_start

Otherwise it crashes if you try to parse a message type that isn't in the messages dictionary.

smarthall commented 9 years ago

Thanks! Fixed in 32ea5597e1e0d79e042c94d40946374a357af30d