public synchronized boolean verifyData(byte[] pdu){
  int cnt=0;
  while (!sDataSet) {
    try {
      Thread.sleep(TIME_WAIT);
      if (cnt++ > WAIT_COUNT) {
        return false;
      }
    }
 catch (    InterruptedException e) {
    }
  }
  Log.v(LOG_TAG,"verify pdu");
  boolean ret=arrayCompare(pdu,mLastReceivedPdu);
  return ret;
}

public synchronized boolean verifyData ( byte [ ] pdu ) { int cnt = 0 ; while ( ! sDataSet ) { try { Thread . sleep ( TIME_WAIT ) ; if ( cnt ++ > WAIT_COUNT ) { return false ; } } catch ( InterruptedException e ) { } } Log . v ( LOG_TAG , "verify pdu" ) ; boolean ret = arrayCompare ( pdu , mLastReceivedPdu ) ; return ret ; }
compare pdu and received pdu
