From 4d8adeb03cc22bce9cdcfd03c383ed14f91948cb Mon Sep 17 00:00:00 2001 From: Andreas Neiser Date: Fri, 12 Apr 2013 22:23:53 +0200 Subject: [PATCH] users/mainz: Small bugfix --- users/mainz_kph_a2/psu.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/mainz_kph_a2/psu.pl b/users/mainz_kph_a2/psu.pl index 3465537..79c4dd9 100755 --- a/users/mainz_kph_a2/psu.pl +++ b/users/mainz_kph_a2/psu.pl @@ -73,8 +73,8 @@ sub get_current_values { my($Uset,$Iset) = unpack("x5nnx", $response_set); # do the weird calculation to physical values (depends on device) - $U = 84 * $U / 25600; - $I = 5 * $I / 25600; + $U = $maxU * $U / 25600; + $I = $maxI * $I / 25600; my $OnOff = $status2 & 0b1; my $Remote = $status1 &0b11; $Uset = $maxU * $Uset / 25600; -- 2.43.0