Incorrect assignment of chunk?
AdamLaurie opened this issue · 0 comments
AdamLaurie commented
Hi,
I believe that this is incorrect:
FrameNumber := uint16(0)
CurrentChunk := uint16(0)
buf := bytes.NewBuffer(ApplicationData[:2])
buf2 := bytes.NewBuffer(ApplicationData[2:4])
buf2 should be only 8 bits, consisting of ApplicationData[3].
ApplicationData[2] is set to 0 normally, or 0x80 if it is the last chunk of the frame.
Apologies for not diving in and fixing/testing this, but I'm not a go programmer and I'm working on my own code in python - just passing this on based on my findings there.