Description
Hi,
I've tested the PR and I'm receiving this error when downloading template. The last debug lines are:
Downloading template...
*** DEBUG ==> _send_packet length: 13
*** DEBUG ==> _send_packet data: ['ef', '01', 'ff', 'ff', 'ff', 'ff', '01', '00', '04', '08', '01', '00', '0e']
*** DEBUG ==> _get_packet received data: ['ef', '01', 'ff', 'ff', 'ff', 'ff', '07', '00', '03', '00', '00', '0a']
*** DEBUG ==> _get_packet reply: ['00']
*** DEBUG ==> _get_data received data: ['ef', '01', 'ff', 'ff', 'ff', 'ff', '02', '00', '82']
*** DEBUG ==> _get_data received start pos: 0xef01
*** DEBUG ==> _get_data received address: [255, 255, 255, 255]
*** DEBUG ==> _get_data received packet_type: 0x2
*** DEBUG ==> _get_data received length: 0x82
*** DEBUG ==> _get_data received checksum: (20956,)
*** DEBUG ==> _get_data received data: ['36', 'ab', '14', '65', '0f', 'a7', '05', '1f', '2e']
*** DEBUG ==> _get_data received start pos: 0x36ab
Traceback (most recent call last):
File "adafruit_template_file_compare.py", line 196, in
enroll_save_to_file()
File "adafruit_template_file_compare.py", line 147, in enroll_save_to_file
data = finger.get_fpdata("char", 1)
File "/home/pi/huellas/adafruit.py", line 222, in get_fpdata
res = self._get_data(9)
File "/home/pi/huellas/adafruit.py", line 405, in _get_data
reply += self._get_data(9)
File "/home/pi/huellas/adafruit.py", line 382, in _get_data
raise RuntimeError("Incorrect packet data")
RuntimeError: Incorrect packet data
The data received length is 130 (I showed it in hex). For some reason there's no next complete parcel, don't know why. Any clue?
Thx