summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-04-13 14:18:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-04-13 14:18:52 +0200
commit5287ecee23016be0b7828ea272b645fd8ea55d82 (patch)
treee1e2ff58529f21cca3f554352505aa7b2e7aae87
parent4099b36caa990fa7a137a27bd5ad911aac4542de (diff)
dfatool: fix uA value in calibration warning
-rwxr-xr-xlib/dfatool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dfatool.py b/lib/dfatool.py
index 0939ed0..3def392 100755
--- a/lib/dfatool.py
+++ b/lib/dfatool.py
@@ -158,7 +158,7 @@ class MIMOSA:
if cal_r2_mean > cal_0_mean:
b_lower = (ua_r2 - 0) / (cal_r2_mean - cal_0_mean)
else:
- print("WARNING: 0 uA == 33 uA during calibration")
+ print("WARNING: 0 uA == %.f uA during calibration" % (ua_r2))
b_lower = 0
b_upper = (ua_r1 - ua_r2) / (cal_r1_mean - cal_r2_mean)