Kod: Zaznacz cały
self.buffer = binascii.unhexlify(hex_data)
TypeError: Non-hexadecimal digit found
Kod: Zaznacz cały
def send(self, hex_data):
pending = True
while(pending):
self.semBuf.acquire()
if(self.buffer == ''):
self.buffer = binascii.unhexlify(hex_data)
pending = False
self.semBuf.release()
time.sleep(0.001)