brianrho / FPM

Arduino library for the R30x/ZFMxx/FPMxx optical fingerprint sensors
105 stars 41 forks source link

Getting "packet too long" using the templates example #35

Closed caioaguena closed 4 years ago

caioaguena commented 4 years ago

I am trying to get the fingerprint template using the library, what I did up until now is i used the enroll example to store a fingerprint then i tried to read it using the Templates code, but i am getting the "Packet too long" error as you can see here.

template_read

Hardware used: ->Arduino Mega2560 ->FPM10A Fingerprint Sensor

Enroll: https://github.com/brianrho/FPM/blob/master/examples/enroll/enroll.ino

Templates: https://github.com/brianrho/FPM/blob/master/examples/templates/templates.ino

caioaguena commented 4 years ago

The issue has been solved!

@brianrho suggested to change the BUFF_SZ value from 768 to 1536, and it's now working properly!

Thanks!