uvk5: Add identification of 4.00.x firmware

Fixes #11165
This commit is contained in:
Dan Smith 2024-02-15 15:23:20 -08:00 committed by Dan Smith
parent 277ceaa4cb
commit d279074eba

View File

@ -2062,7 +2062,7 @@ class UVK5Radio(UVK5RadioBase):
@classmethod @classmethod
def k5_approve_firmware(cls, firmware): def k5_approve_firmware(cls, firmware):
approved_prefixes = ('k5_2.01.', 'app_2.01.', '2.01.', approved_prefixes = ('k5_2.01.', 'app_2.01.', '2.01.',
'1o11') '1o11', '4.00.')
return any(firmware.startswith(x) for x in approved_prefixes) return any(firmware.startswith(x) for x in approved_prefixes)
@classmethod @classmethod