Skip to content

Commit 6f05436

Browse files
committed
Adjust command execution delays for stability
1 parent 7ce2fa3 commit 6f05436

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ECCX08.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ long ECCX08Class::version()
474474
return 0;
475475
}
476476

477-
delay(1);
477+
delay(2);
478478

479479
if (!receiveResponse(&version, sizeof(version))) {
480480
return 0;
@@ -499,7 +499,7 @@ int ECCX08Class::challenge(const byte message[])
499499
return 0;
500500
}
501501

502-
delay(7);
502+
delay(29);
503503

504504
if (!receiveResponse(&status, sizeof(status))) {
505505
return 0;
@@ -532,7 +532,7 @@ int ECCX08Class::verify(const byte signature[], const byte pubkey[])
532532
return 0;
533533
}
534534

535-
delay(58);
535+
delay(72);
536536

537537
if (!receiveResponse(&status, sizeof(status))) {
538538
return 0;
@@ -558,7 +558,7 @@ int ECCX08Class::sign(int slot, byte signature[])
558558
return 0;
559559
}
560560

561-
delay(50);
561+
delay(60);
562562

563563
if (!receiveResponse(signature, 64)) {
564564
return 0;
@@ -588,7 +588,7 @@ int ECCX08Class::read(int zone, int address, byte buffer[], int length)
588588
return 0;
589589
}
590590

591-
delay(2);
591+
delay(5);
592592

593593
if (!receiveResponse(buffer, length)) {
594594
return 0;

0 commit comments

Comments
 (0)