From c7367fc5ee17ee5d826d92e9e27e991748e9620d Mon Sep 17 00:00:00 2001 From: gstellenberg Date: Fri, 30 Oct 2009 23:50:44 -0500 Subject: [PATCH] Changed VerifyChipID retries to 5 now that it's ignoring unrequested data. Should really only need to be 1. --- src/PRDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PRDevice.cpp b/src/PRDevice.cpp index 1b78f89..f8d0b13 100644 --- a/src/PRDevice.cpp +++ b/src/PRDevice.cpp @@ -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;