Skip to content

Commit

Permalink
Merge pull request #639 from rstular/fix-atqa-comparison
Browse files Browse the repository at this point in the history
Fix - assignment instead of comparison (PCSC driver)
  • Loading branch information
doegox committed Aug 5, 2021
2 parents 56f6bd4 + 1f4d2fb commit c8185c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnfc/drivers/pcsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static int pcsc_props_to_target(struct nfc_device *pnd, uint8_t it, const uint8_
uint8_t atqa[2];
pcsc_get_atqa(pnd, atqa, sizeof(atqa));
//ATQA Coding of NXP Contactless Card ICs
if(atqa[0] = 0x00 || atqa[0] == 0x03)
if(atqa[0] == 0x00 || atqa[0] == 0x03)
{
memcpy(pnt->nti.nai.abtAtqa,atqa,2);
}else {
Expand Down

0 comments on commit c8185c9

Please sign in to comment.