}
}
}
if (useDataFrameTimeout && System.currentTimeMillis() - timeoutCounterForDataFrame > dataFrameTimeout) {
resetBuffer();
throw new NfcTimeoutException();
}
if ((useAckFrameTimeout) && (System.currentTimeMillis() - timeoutCounter > timeoutTillFirstAckFrame)) {
resetBuffer();
throw new NfcTimeoutException("No complete message within timeout. Msg: ["
+ NfcUtils.convertBinToASCII(buffer, 0, bufPos) + "] Length: " + bufPos);
}
}
}