dpp-nfc: Detect a non-NDEF tag when trying to write
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
288c0ffaaa
commit
1e4a42c745
1 changed files with 3 additions and 0 deletions
|
@ -584,6 +584,9 @@ def dpp_tag_read(tag):
|
|||
|
||||
def rdwr_connected_write_tag(tag):
|
||||
summary("Tag found - writing - " + str(tag))
|
||||
if not tag.ndef:
|
||||
summary("Not a formatted NDEF tag")
|
||||
return
|
||||
if not tag.ndef.is_writeable:
|
||||
summary("Not a writable tag")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue