improvements for flame

- frappy_psi.channelswitcher: use isBusy instead of checking value and target
- frappy_psi.ls372: remove underflow mechanism
- frappy_psi.parmod.SwitchDriv: switch the controlled module also when not buys
This commit is contained in:
l_samenv
2023-07-11 13:24:41 +02:00
parent e9a195d61e
commit 2f3c68a5c5
3 changed files with 65 additions and 39 deletions

View File

@ -109,7 +109,7 @@ class ChannelSwitcher(Drivable):
def read_status(self):
now = time.monotonic()
if self.status[0] == 'BUSY':
if self.isBusy():
chan = self.channels[self.target]
if chan.is_switching(now, self._start_switch, self.switch_delay):
return self.status