We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dafd6 commit 8b2ae08Copy full SHA for 8b2ae08
c3/core.py
@@ -446,7 +446,7 @@ def _update_inout_status(self, logs: list[rtlog.RTLogRecord]):
446
for lock_nr in range(1, self.nr_of_locks+1):
447
self._set_lock_status(lock_nr, log.door_sensor_status(lock_nr), auto_close=False)
448
449
- elif isinstance(log, rtlog.EventRecord):
+ elif isinstance(log, rtlog.EventRecord) and log.port_nr-1 in range(self.nr_of_locks):
450
if log.event_type == consts.EventType.OPEN_AUX_OUTPUT:
451
self._set_aux_out_status(log.port_nr, consts.InOutStatus.OPEN, auto_close=False)
452
elif log.event_type == consts.EventType.CLOSE_AUX_OUTPUT:
0 commit comments