Skip to content

Commit

Permalink
Fix time.ctime() in nfc_header: add format
Browse files Browse the repository at this point in the history
  • Loading branch information
LupusE committed Aug 18, 2024
1 parent c57fa44 commit 0157bcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nfc_gen_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"""

import sys
import time

try:
import ndef
Expand All @@ -27,7 +28,7 @@
# for debuging
verbose = 0

nfc_header = """Filetype: Flipper NFC device
nfc_header = (f"""Filetype: Flipper NFC device
Version: 2
# generated with flipper_toolbox
# {time.ctime()}
Expand All @@ -46,7 +47,7 @@
Counter 2: 0
Tearing 2: 00
Pages total: 135
"""
""")

data_static = [
0x04, 0x10, 0x56, 0xCA, # 01 serial number
Expand Down

0 comments on commit 0157bcd

Please sign in to comment.