kopia lustrzana https://github.com/micropython/micropython-lib
aioble/security: Only schedule save when needed.
Was getting occasional: RuntimeError: schedule queue fullpull/462/head
rodzic
5b496e944e
commit
75997117e4
|
@ -106,6 +106,7 @@ def _security_irq(event, data):
|
|||
_secrets[key] = value
|
||||
|
||||
# Queue up a save (don't synchronously write to flash).
|
||||
if not _modified:
|
||||
_modified = True
|
||||
schedule(_save_secrets, None)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue