Changeset 28014 for trunk/ippScripts/scripts/chip_imfile.pl
- Timestamp:
- May 18, 2010, 4:15:53 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r27718 r28014 76 76 defined $run_state; 77 77 78 my_die ("$run_state is an invalid value for run-state", $exp_id, $chip_id, $class_id, $PS_EXIT_PROG_ERROR) unless ($run_state eq 'new' or $run_state eq 'update'); 79 78 80 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 79 81 … … 201 203 202 204 my $burntoolStateGood; 205 my $burntoolStateGoodUpdate; 203 206 foreach my $camEntry (@$camData) { 204 207 if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") { 205 208 $burntoolStateGood = $camEntry->{value}; 206 209 } 207 } 208 209 print "burntool state vs burntoolStateGood : $burntoolState vs $burntoolStateGood\n"; 210 if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") { 211 $burntoolStateGoodUpdate = $camEntry->{value}; 212 } 213 } 214 215 if ($run_state eq 'new') { 216 print "burntool state vs burntoolStateGood : $burntoolState vs $burntoolStateGood\n"; 217 } else { 218 # if doing update go ahead if burntoolState is at least at BURNTOOL.STATE.GOOD.UPDATE 219 print "burntool state vs burntoolStateGoodUpdate : $burntoolState vs $burntoolStateGoodUpdate\n"; 220 $useBestBurntool = 0 if (abs($burntoolState) >= $burntoolStateGoodUpdate); 221 } 222 210 223 if (abs($burntoolState) != $burntoolStateGood) { 211 224 if ($useBestBurntool) {
Note:
See TracChangeset
for help on using the changeset viewer.
