]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
adc.pl: Add little check
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Wed, 17 Jun 2015 14:12:30 +0000 (16:12 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Wed, 17 Jun 2015 14:12:30 +0000 (16:12 +0200)
tools/adc.pl

index 501b3853434b83cfd55e25f04ef05514dad32573..1efe4647bec2c0e35b2f66f3a38711c4ae0ae383 100755 (executable)
@@ -59,6 +59,7 @@ $board = hex($board);
 #my $temperat = trb_register_read($board,0);
 #my $ctime    = trb_register_read($board,0x40);
 my $inclLow  = trb_register_read($board,0x41);
+die sprintf("Could not read lower implemented feature register 0x41 from 0x%04x. Have you initiliazed the TRB3 properly?",$board) unless defined $inclLow;
 my $hardware = trb_register_read($board,0x42);
 my $inclHigh = trb_register_read($board,0x43);
 $inclLow  = $inclLow->{$board};