hsanjuan / go-ndef

A Go implementation of the NFC Data Exchange Format (NDEF) specification
GNU Lesser General Public License v3.0
10 stars 5 forks source link

fix marshal of message with multiple records #2

Closed taglme closed 5 years ago

taglme commented 5 years ago

Fix for #1. Set MB and ME flags of records during message marshaling.

hsanjuan commented 5 years ago

hi, sorry, I'd like to fix this properly, by making a record a collection of chunks and refactoring the whole thing from there. The checks you are trying to remove are valid, the problem is the record unmarshaler parses the two chunks belonging to the different records into the same one.

I'll have a look in the next few days

hsanjuan commented 5 years ago

Fixed by #3