Skip to content

Commit 1111930

Browse files
authored
Merge pull request #56 from FoamyGuy/setsysparam_sleep
wait after set_sysparam
2 parents 39c71bf + 6d2e073 commit 1111930

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_fingerprint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
pass
3131

3232
import struct
33+
import time
3334

3435
from micropython import const
3536
from busio import UART
@@ -171,6 +172,7 @@ def set_sysparam(self, param_num: int, param_val: int) -> int:
171172
self.security_level = param_val
172173
elif param_num == 6:
173174
self.data_packet_size = param_val
175+
time.sleep(0.25)
174176
return r[0]
175177

176178
def get_image(self) -> int:

0 commit comments

Comments
 (0)