Skip to content

Commit

Permalink
Added additional write info to log box.
Browse files Browse the repository at this point in the history
  • Loading branch information
malc0mn committed Dec 31, 2023
1 parent 0e83589 commit 3ff7f3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ func (p *portal) write(data []byte, user bool) {
}

typ := []byte{0x00}
msg := "full amiibo"
if user {
typ = []byte{0x01}
msg = "amiibo user"
}
p.log <- encodeStringCell("Writing " + msg + " data to token")

p.log <- encodeStringCell("Sending amiibo data to NFC portal")
p.client.SendCommand(nfcptl.Command{Command: nfcptl.WriteTokenData, Arguments: append(typ, data...)})
Expand Down

0 comments on commit 3ff7f3e

Please sign in to comment.