Skip to content

Commit 2980f54

Browse files
committed
cleaning up some leftovers
1 parent 0ca3593 commit 2980f54

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ptd_client_server/lib/server.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -899,10 +899,6 @@ def stop(self, mode: Mode) -> bool:
899899
# https://assets.testequity.com/te1/Documents/pdf/power-measurements_AC-DC-an.pdf
900900
# in order to achieve same peak detection, range should be 3.3 higher than max measured RMS (since crest factor of meter is 3 and 3*3.3 is almost 10 :) )
901901

902-
if self._maxAmps is not None and self._maxVolts is not None:
903-
w = float(self._maxAmps) * float(self._maxVolts)
904-
else:
905-
w = -1
906902
if float(self._avgWatts) < 75:
907903
self._desirableCurrentRange = str(float(self._maxAmps) * 3.3)
908904
else:

0 commit comments

Comments
 (0)