diff --git a/mpf/platforms/mypinballs/mypinballs.py b/mpf/platforms/mypinballs/mypinballs.py index 23c6df5f9..7bdf4ab69 100644 --- a/mpf/platforms/mypinballs/mypinballs.py +++ b/mpf/platforms/mypinballs/mypinballs.py @@ -27,8 +27,6 @@ def set_text(self, text: ColoredSegmentDisplayText, flashing: FlashingType, flas # remove any non-numbers and spaces text = re.sub(r'[^0-9 ]', "", text) - # special char for spaces - text = text.replace(" ", "?") # set text if flashing == FlashingType.FLASH_ALL: cmd = b'2:' diff --git a/mpf/tests/test_MyPinballs.py b/mpf/tests/test_MyPinballs.py index a9686cad6..22fc7f2fb 100644 --- a/mpf/tests/test_MyPinballs.py +++ b/mpf/tests/test_MyPinballs.py @@ -107,7 +107,7 @@ def setUp(self): def testPlatform(self): self.serialMock.expected_commands = { - b'1:1:???1234': False, + b'1:1: 1234': False, } self.machine.segment_displays["display1"].add_text("1234", key="score") self._wait_for_processing() @@ -115,7 +115,7 @@ def testPlatform(self): # change text (with same key) self.serialMock.expected_commands = { - b'1:1:???1337': False, + b'1:1: 1337': False, } self.machine.segment_displays["display1"].add_text("1337", key="score") self._wait_for_processing() @@ -123,7 +123,7 @@ def testPlatform(self): # change text (with same key) self.serialMock.expected_commands = { - b'1:1:??42?23': False, + b'1:1: 42 23': False, } self.machine.segment_displays["display1"].add_text("42 23", key="score") self._wait_for_processing() @@ -138,28 +138,28 @@ def testPlatform(self): self.assertFalse(self.serialMock.expected_commands) self.serialMock.expected_commands = { - b'1:2:?424242': False, + b'1:2: 424242': False, } self.machine.segment_displays["display2"].add_text("424242") self._wait_for_processing() self.assertFalse(self.serialMock.expected_commands) self.serialMock.expected_commands = { - b'2:2:?424242': False, + b'2:2: 424242': False, } self.machine.segment_displays["display2"].set_flashing(FlashingType.FLASH_ALL) self._wait_for_processing() self.assertFalse(self.serialMock.expected_commands) self.serialMock.expected_commands = { - b'1:2:?424242': False, + b'1:2: 424242': False, } self.machine.segment_displays["display2"].set_flashing(FlashingType.NO_FLASH) self._wait_for_processing() self.assertFalse(self.serialMock.expected_commands) self.serialMock.expected_commands = { - b'4:2:?424242': False, + b'4:2: 424242': False, } self.machine.segment_displays["display2"].set_flashing(FlashingType.FLASH_MATCH) self._wait_for_processing()