Skip to content

Commit

Permalink
locking configuration and data take time for ACK
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Sep 20, 2024
1 parent 540d2f1 commit 147067a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/scaffold/atecc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,15 +1240,15 @@ 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):
"""
Lock data zone of the EEPROM memory.
"""
# 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):
"""
Expand Down

0 comments on commit 147067a

Please sign in to comment.