Fix logic error

This commit is contained in:
Simon 2021-07-22 00:50:54 +01:00
parent cbd25b924d
commit 09d1614adb

View File

@ -1397,9 +1397,9 @@ class routerOBP(OPENBRIDGE):
#LoopControl #LoopControl
hr_times = {} hr_times = {}
for system in systems: for system in systems:
if system == self._system: # if system == self._system:
continue # continue
if CONFIG['SYSTEMS'][system]['MODE'] != 'OPENBRIDGE': if system != self._system CONFIG['SYSTEMS'][system]['MODE'] != 'OPENBRIDGE':
for _sysslot in systems[system].STATUS: for _sysslot in systems[system].STATUS:
if 'RX_STREAM_ID' in systems[system].STATUS[_sysslot] and _stream_id == systems[system].STATUS[_sysslot]['RX_STREAM_ID']: if 'RX_STREAM_ID' in systems[system].STATUS[_sysslot] and _stream_id == systems[system].STATUS[_sysslot]['RX_STREAM_ID']:
if 'LOOPLOG' not in self.STATUS[_stream_id] or not self.STATUS[_stream_id]['LOOPLOG']: if 'LOOPLOG' not in self.STATUS[_stream_id] or not self.STATUS[_stream_id]['LOOPLOG']: