Skip to content

Commit

Permalink
increase retry counter and enable retries on init (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
webconn authored Jun 8, 2021
1 parent 0582a44 commit 8c15629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define WITH_OPENSSL ""
#endif

#define DEFAULT_RETRIES 3
#define DEFAULT_RETRIES 10

struct atecc_cmd {
const char *name;
Expand Down Expand Up @@ -171,6 +171,7 @@ int main(int argc, char *argv[])
return 1;
}

retry_counter_reset(num_retries);
/* init ATECC first */
if (atecc_init(&cfg) != ATCA_SUCCESS) {
exit(2);
Expand Down
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
atecc-util (0.4.5) stable; urgency=medium

* increase default retries number to 10
* allow retries on init procedures

-- Nikita Maslov <nikita.maslov@wirenboard.ru> Tue, 08 Jun 2021 22:04:32 +0300

atecc-util (0.4.4) stable; urgency=medium

* set device type based on device signature
Expand Down

0 comments on commit 8c15629

Please sign in to comment.