4 from typing
import NamedTuple
10 class DeviceType(Enum
):
16 class RadioType(Enum
):
21 class FirmwareOptions(NamedTuple
):
23 deviceType
: DeviceType
39 def find_patch_location(mm
):
40 return mm
.find(b
'\xBE\xEF\xBA\xBE\xCA\xFE\xF0\x0D')
43 pos
= mm
.find(b
'\xBE\xEF\xBA\xBE\xCA\xFE\xF0\x0D')
45 pos
+= 8 + 2 # Skip magic & version