We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0a451 commit 9c8d28eCopy full SHA for 9c8d28e
adafruit_wiznet5k/adafruit_wiznet5k_dns.py
@@ -117,7 +117,7 @@ def _parse_dns_response(self):
117
self._pkt_buf = self._sock.recv(packet_sz)[0]
118
119
# Validate request identifier
120
- if not hex(int.from_bytes(self._pkt_buf[0:2], 'l')) == hex(self._request_id):
+ if not int.from_bytes(self._pkt_buf[0:2], 'l') == self._request_id:
121
return -1
122
# Validate flags
123
if not int.from_bytes(self._pkt_buf[2:4], 'l') == 0x8180:
0 commit comments