Skip to content

Commit bd0bb36

Browse files
committed
misc
1 parent c47bc84 commit bd0bb36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

orvibo/s20.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ def __init__(self, host, mac = None):
137137
if not mac:
138138
(self._mac, self._mac_reversed) = self._discover_mac()
139139
else:
140-
self._mac = binascii.a2b_hex(''.join(mac.split(':')))
140+
if type(mac) is str:
141+
self._mac = binascii.a2b_hex(''.join(mac.split(':')))
142+
else:
143+
self._mac = mac
141144
ba = bytearray(self._mac)
142145
ba.reverse()
143146
self._mac_reversed = bytes(ba)

0 commit comments

Comments
 (0)