Skip to content

Commit

Permalink
FAST Neuron communicator ignores switches from other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
bosh committed Oct 2, 2024
1 parent 239e1be commit 059786a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpf/platforms/fast/communicators/net_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def update_switches_from_hw_data(self):
This will silently sync the switch.hw_state. If the logical state changes,
it will process it like any switch change.
"""
for switch in self.machine.switches.values():
for switch in [sw for sw in self.machine.switches.values() if sw.platform == self.platform]:
hw_state = self.platform.hw_switch_data[switch.hw_switch.number]

if hw_state != switch.hw_state:
Expand Down

0 comments on commit 059786a

Please sign in to comment.