From 147067a1260e9e0b56a2b53b76177c306061080b Mon Sep 17 00:00:00 2001 From: mmouchous-ledger Date: Fri, 20 Sep 2024 18:14:39 +0200 Subject: [PATCH] locking configuration and data take time for ACK --- api/scaffold/atecc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/scaffold/atecc.py b/api/scaffold/atecc.py index f01594d..f5b35ab 100644 --- a/api/scaffold/atecc.py +++ b/api/scaffold/atecc.py @@ -1240,7 +1240,7 @@ def lock_config(self): """ # Bit 7 to ignore CRC content checking before lock. mode = 1 << 7 - self.command(ATECCOpCode.LOCK, mode, 0) + self.command(ATECCOpCode.LOCK, mode, 0, wait=0.02) def lock_data(self): """ @@ -1248,7 +1248,7 @@ def lock_data(self): """ # Bit 7 to ignore CRC content checking before lock. mode = (1 << 7) + 0b01 - self.command(ATECCOpCode.LOCK, mode, 0) + self.command(ATECCOpCode.LOCK, mode, 0, wait=0.02) def lock_slot(self, slot: int): """