Add another possible mac range (#2)
This commit is contained in:

committed by
GitHub

parent
081d2fd617
commit
c9d465c644
@ -48,6 +48,11 @@ def is_espressif(mac : str):
|
||||
start_block = 0x58_CF_79 << 24
|
||||
end_block = start_block + (1 << 24) # Exclusive
|
||||
mac_value = int(mac.replace(":", ""), base = 16)
|
||||
if (mac_value >= start_block) and (mac_value < end_block):
|
||||
return True
|
||||
start_block = 0xDC_54_75 << 24
|
||||
end_block = start_block + (1 << 24) # Exclusive
|
||||
mac_value = int(mac.replace(":", ""), base = 16)
|
||||
if (mac_value >= start_block) and (mac_value < end_block):
|
||||
return True
|
||||
return False
|
||||
@ -181,4 +186,4 @@ def create_code_128(text : str):
|
||||
imwrite = ImageWriter()
|
||||
imwrite.dpi = 200
|
||||
code = Code128(text, writer = imwrite)
|
||||
return convert_image_to_canvas(code.render(text = ""), dither = False, trim = True)
|
||||
return convert_image_to_canvas(code.render(text = ""), dither = False, trim = True)
|
||||
|
Reference in New Issue
Block a user