Skip to content

Commit

Permalink
fix reading of KeyboardInputMessage header
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhmather committed Jan 20, 2015
1 parent eaa2061 commit 717ffdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payment_terminal/drivers/bbs/messages.py
Expand Up @@ -241,7 +241,7 @@ def unpack_fields(cls, data):
# TODO yuck yuck yuck
fields = OrderedDict()

fields['header'], size = cls.type.read(data)
fields['type'], size = cls.type.unpack(data)

text_data = data[size:-cls.delimiter.size]
fields['text'], size = cls.text.unpack(text_data)
Expand Down

0 comments on commit 717ffdd

Please sign in to comment.