Skip to content

Commit 9c8d28e

Browse files
author
brentru
committed
remove hex()
1 parent eb0a451 commit 9c8d28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wiznet5k/adafruit_wiznet5k_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _parse_dns_response(self):
117117
self._pkt_buf = self._sock.recv(packet_sz)[0]
118118

119119
# Validate request identifier
120-
if not hex(int.from_bytes(self._pkt_buf[0:2], 'l')) == hex(self._request_id):
120+
if not int.from_bytes(self._pkt_buf[0:2], 'l') == self._request_id:
121121
return -1
122122
# Validate flags
123123
if not int.from_bytes(self._pkt_buf[2:4], 'l') == 0x8180:

0 commit comments

Comments
 (0)