Skip to content

Commit

Permalink
Merge pull request #56 from FoamyGuy/setsysparam_sleep
Browse files Browse the repository at this point in the history
wait after set_sysparam
  • Loading branch information
FoamyGuy authored Nov 20, 2024
2 parents 39c71bf + 6d2e073 commit 1111930
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adafruit_fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
pass

import struct
import time

from micropython import const
from busio import UART
Expand Down Expand Up @@ -171,6 +172,7 @@ def set_sysparam(self, param_num: int, param_val: int) -> int:
self.security_level = param_val
elif param_num == 6:
self.data_packet_size = param_val
time.sleep(0.25)
return r[0]

def get_image(self) -> int:
Expand Down

0 comments on commit 1111930

Please sign in to comment.