public void clear2LeadSearchLight(int bit){
  if (nodeType != SMINI) {
    log.error("Invalid setting of Searchlights bits - not SMINI node");
    return;
  }
  if ((bit < 0) || (bit > 46)) {
    log.error("Invalid bit number when setting SMINI Searchlights bits: " + Integer.toString(bit));
    return;
  }
  if ((locSearchLightBits[bit] != 1) || (locSearchLightBits[bit + 1] != 1)) {
    log.error("bit number for SMINI Searchlights bits already clear: " + Integer.toString(bit));
    return;
  }
  locSearchLightBits[bit]=0;
  locSearchLightBits[bit + 1]=0;
  num2LSearchLights--;
}

public void clear2LeadSearchLight ( int bit ) { if ( nodeType != SMINI ) { log . error ( "Invalid setting of Searchlights bits - not SMINI node" ) ; return ; } if ( ( bit < 0 ) || ( bit > 46 ) ) { log . error ( "Invalid bit number when setting SMINI Searchlights bits: " + Integer . toString ( bit ) ) ; return ; } if ( ( locSearchLightBits [ bit ] != 1 ) || ( locSearchLightBits [ bit + 1 ] != 1 ) ) { log . error ( "bit number for SMINI Searchlights bits already clear: " + Integer . toString ( bit ) ) ; return ; } locSearchLightBits [ bit ] = 0 ; locSearchLightBits [ bit + 1 ] = 0 ; num2LSearchLights -- ; }
clear location of searchlightbits ( smini only ) bit - bitnumber of the low bit of an oscillating search light bit pair notes : bits are numbered from 0 two bits are cleared by each call - bit and bit + 1 . if either bit is already clear , an error is logged and no bits are set .
