Write template on Fingerprint sensor R305/R307

dhananjayaggarwal:
Since total size of template is 512 bytes, create two data frames containing 128 bytes of data each.

hum... 2 x 128 is not 512....

you can see above that extracting one profile actually required 3 frames

so you probably need to build the right number of frames based on what was actually received from the command to upload to the computer, and play that back the other way.

I'm on the go and don't have the device available so can't test anything - but that's how I would explore that