*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 62515337 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Bugfix

parent bd52478a
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,10 @@ class TimeBaseWorker(Worker): ...@@ -34,10 +34,10 @@ class TimeBaseWorker(Worker):
group = file[f"devices/{device_name}"] group = file[f"devices/{device_name}"]
for channel in group: for channel in group:
for attr,value in group[channel].attrs.items(): for attr,value in group[channel].attrs.items():
if self.smart_cache[channel][attr] != group[channel].attrs[attr] or fresh: if self.smart_cache[channel].get(attr) != group[channel].attrs[attr] or fresh:
# Disable sweep mode, if it was in use. # Disable sweep mode, if it was in use.
# This is necessary is update the sweep mode parameters. # This is necessary is update the sweep mode parameters.
if self.smart_cache[channel]["Sswpm"] != 0: if self.smart_cache[channel].get("Sswpm") != 0:
print(f"Programming {channel}, Sswpm=0") print(f"Programming {channel}, Sswpm=0")
self.client.send(f"{channel}|Sswpm:0\r\n".encode()) self.client.send(f"{channel}|Sswpm:0\r\n".encode())
self.smart_cache[channel]["Sswpm"] = 0 self.smart_cache[channel]["Sswpm"] = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment