From: hadeshyp Date: Wed, 28 Nov 2012 18:38:34 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=cda4c2ab0629be51d5d48039c71faf58cdabf42d;p=daqtools.git *** empty log message *** --- diff --git a/padiwa.pl b/padiwa.pl index 3e1fd18..52a3752 100755 --- a/padiwa.pl +++ b/padiwa.pl @@ -16,6 +16,7 @@ if(!$ARGV[0]) { print "usage: padiwa.pl \$FPGA \$chain \$command \$options\n\n"; print "\t uid \t\t read unique ID, no options\n"; print "\t temp \t\t read temperature, no options\n"; + print "\t resettemp \t\t resets the 1-wire logic\n"; print "\t dac \t\t set LTC-DAC value. options: \$channel, \$value\n"; print "\t pwm \t\t set PWM value. options: \$channel, \$value\n"; print "\t pwm \t\t read PWM value. options: \$channel\n"; @@ -72,11 +73,10 @@ if($ARGV[2] eq "temp") { } } -if($ARGV[2] eq "uid" && defined $ARGV[3]) { - my $b = sendcmd(0x10800001); - usleep(100000); - $b = sendcmd(0x10800000); +if($ARGV[2] eq "resettemp") { + sendcmd(0x10800001); usleep(100000); + sendcmd(0x10800001); }