1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-22 18:15:25 +01:00

Changed VerifyChipID retries to 5 now that it's ignoring unrequested data. Should really only need to be 1.

This commit is contained in:
gstellenberg
2009-10-30 23:50:44 -05:00
parent 8f6357fcb4
commit c7367fc5ee

View File

@@ -859,7 +859,7 @@ PRResult PRDevice::Open()
res = FlushReadBuffer();
uint32_t verify_ctr = 0;
res = VerifyChipID();
while (res == kPRFailure && verify_ctr++ < 50) {
while (res == kPRFailure && verify_ctr++ < 5) {
// Only send init pattern once.
if (verify_ctr == 1) {
temp_word = P_ROC_INIT_PATTERN_A;