]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
compatiblity to old and new db files
authorJan Michel <j.michel@gsi.de>
Wed, 28 Aug 2013 16:11:24 +0000 (18:11 +0200)
committerJan Michel <j.michel@gsi.de>
Wed, 28 Aug 2013 16:11:24 +0000 (18:11 +0200)
tools/merge_serial_address.pl

index bf6e053384222b5e16b6784474932df62d8d6c12..7ed3f2cf85c450be2c65ebb4a8c35be1274a7ba7 100755 (executable)
@@ -37,7 +37,7 @@ foreach my $cur_ln (<$fh2>) {
     next if (!defined $serial_nr);
     $trb{$serial_nr}->{'address'} = hex($address);
     $trb{$serial_nr}->{'endpoint_nr'} = $sernr2;
-    $trb{$serial_nr}->{'uid'} = $trb{int($sernr1)}->{'uid'};
+    $trb{$serial_nr}->{'uid'} = $trb{int($sernr1)}->{'uid'} unless $trb{$serial_nr}->{'uid'};  #compat. to old db files
 }