This commit is contained in:
Peter D. Gray 2023-12-08 09:43:51 -05:00
parent 412979f721
commit 1ad42867bc
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -4,7 +4,7 @@ from nfc import NFCHandler
global TAG_DATA
TAG_DATA = bytearray(8196)
# unix/working/nfc-dump.ndef
# unix/work/nfc-dump.ndef
DATA_FILE = 'nfc-dump.ndef'
class SimulatedNFCHandler(NFCHandler):
@ -30,7 +30,7 @@ class SimulatedNFCHandler(NFCHandler):
atime, mtime, ctime = os.stat(DATA_FILE)[-3:]
self._mtime = mtime
self._atime = atime
print("%d bytes of NDEF written to work/nfc-dump.ndef .. Press N or touch or read that file to simulate taps" % n)
print("%d bytes of NDEF written to work/nfc-dump.ndef .. Ctrl-N or touch or read that file to simulate taps" % n)
async def wipe(self, full_wipe):
print("NFC chip wiped (full=%d)" % int(full_wipe))