esitarski / pyllrp

Python library to access all features of RFID Reader LLRP (Low Level Reader Protocol).
MIT License
16 stars 5 forks source link

Typo in TagWriter.py #3

Open kimble4 opened 9 months ago

kimble4 commented 9 months ago

Looks like there's a typo in TagWriter.py:

def hexToBytes( epc ):
    assert len(epc) % 2 == 0, 'epc must be a byte multiple'
    return codec.decode(epc, 'hex_codec')

It should be codecs.decode, as the imported library is codecs

This function is only called if you specify a value for epcOld, hence this doesn't cause a problem for TagReadWrite.