Closed fuentes73 closed 5 years ago
USB Reader normally have more than one codification allowed. I don't know which USB Reader you have, but on my case I could change codification to 8H REVERSE to fit with hexadecimal readers.
Didn't remember of this issue. @hveficent Thank's for the info.
Hi, I've been testing
hr_attendance_rfid
module with Eficent RAS project and I noticed that:51e69621
0563537489
If you have registered the
rfid_card_code
of each employee with the usb reader, now you have a problem. As it can be converted0563537489
into51e69621
and vice versa, Which solution do you think is better?rfid_card_hex_code
and compute it fromrfid_card_code
. Ifrfid_card_code
is already a hex code do nothing, just copy the value.register_attendance
function ifcard_code
is equal torfid_card_code
orrfid_card_hex_code
Modify
register_attendance
function in order to compute decimal and hexadecimal value ofcard_code
and check if any is equal torfid_card_code
I'll open a PR with the chosen solution.
cc @omar7r @hveficent @jbeficent