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

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

Fixed rounding error in program_manual

parent 755e1a02
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,7 @@ class TimeBaseWorker(Worker): ...@@ -111,6 +111,7 @@ class TimeBaseWorker(Worker):
self.client.send(f"{channel}|Sfreq:{dds['freq']}\r\n".encode()) self.client.send(f"{channel}|Sfreq:{dds['freq']}\r\n".encode())
self.smart_cache[channel]["Sfreq"] = dds["freq"] self.smart_cache[channel]["Sfreq"] = dds["freq"]
if 10*dds["amp"] != self.smart_cache[channel]["Sampl"]: if 10*dds["amp"] != self.smart_cache[channel]["Sampl"]:
dds["amp"] = round(dds["amp"],1)
self.client.send(f"{channel}|Sampl:{10*dds['amp']}\r\n".encode()) self.client.send(f"{channel}|Sampl:{10*dds['amp']}\r\n".encode())
self.smart_cache[channel]["Sampl"] = 10*dds["amp"] self.smart_cache[channel]["Sampl"] = 10*dds["amp"]
if dds["gate"] != self.smart_cache[channel]["Sout"]: if dds["gate"] != self.smart_cache[channel]["Sout"]:
......
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