mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +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:
@@ -859,7 +859,7 @@ PRResult PRDevice::Open()
|
|||||||
res = FlushReadBuffer();
|
res = FlushReadBuffer();
|
||||||
uint32_t verify_ctr = 0;
|
uint32_t verify_ctr = 0;
|
||||||
res = VerifyChipID();
|
res = VerifyChipID();
|
||||||
while (res == kPRFailure && verify_ctr++ < 50) {
|
while (res == kPRFailure && verify_ctr++ < 5) {
|
||||||
// Only send init pattern once.
|
// Only send init pattern once.
|
||||||
if (verify_ctr == 1) {
|
if (verify_ctr == 1) {
|
||||||
temp_word = P_ROC_INIT_PATTERN_A;
|
temp_word = P_ROC_INIT_PATTERN_A;
|
||||||
|
|||||||
Reference in New Issue
Block a user