Skip to content
Permalink
Browse files

fix lisy command 0x07

  • Loading branch information...
jabdoa2 committed Aug 30, 2019
1 parent 314b60d commit 3bf547d0bf18005b56a1387b73cae013cd9d8774
Showing with 8 additions and 8 deletions.
  1. +3 −3 mpf/platforms/lisy/lisy.py
  2. +5 −5 mpf/tests/test_Lisy.py
@@ -148,12 +148,12 @@ def initialize(self):
# display info for display
display_info = yield from (self.platform.send_byte_and_read_response(
LisyDefines.InfoGetDisplayDetails, bytearray([self.number]), 2))
if 1 > display_info[1] > 6:
if 1 > display_info[0] > 6:
raise AssertionError("Invalid display type {} reported by hardware for display {}".format(
self._type_of_display, self.number))

self._length_of_display = int(display_info[0])
self._type_of_display = display_info[1]
self._type_of_display = display_info[0]
self._length_of_display = int(display_info[1])

# clear display initially
self._set_text("")
@@ -466,11 +466,11 @@ def setUp(self):
b'\x03': b'\x28', # get number of lamps -> 40
b'\x04': b'\x09', # get number of solenoids -> 9
b'\x06': b'\x05', # get number of displays -> 5
b'\x07\x00': b'\x10\x02', # get type of display 0
b'\x07\x01': b'\x05\x03', # get type of display 1
b'\x07\x02': b'\x07\x04', # get type of display 2
b'\x07\x03': b'\x03\x05', # get type of display 3
b'\x07\x04': b'\x10\x06', # get type of display 4
b'\x07\x00': b'\x02\x10', # get type of display 0
b'\x07\x01': b'\x03\x05', # get type of display 1
b'\x07\x02': b'\x04\x07', # get type of display 2
b'\x07\x03': b'\x05\x03', # get type of display 3
b'\x07\x04': b'\x06\x10', # get type of display 4
b'\x09': b'\x58', # get number of switches -> 88
b'\x13': b'\x00', # get number of modern lights -> 0
b'\x1e\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00': None, # clear display

0 comments on commit 3bf547d

Please sign in to comment.
You can’t perform that action at this time.