diff --git a/src/utils/bootloader.ts b/src/utils/bootloader.ts index 261e542..565db97 100644 --- a/src/utils/bootloader.ts +++ b/src/utils/bootloader.ts @@ -75,7 +75,7 @@ const GBL_END_TAG = Buffer.from([0xfc, 0x04, 0x04, 0xfc]) const GBL_METADATA_TAG = Buffer.from([0xf6, 0x08, 0x08, 0xf6]) const VALID_FIRMWARE_CRC32 = 558161692 -const SUPPORTED_VERSIONS_REGEX = /(7\.4\.\d\.\d)|(8\.0\.\d\.\d)/ +const SUPPORTED_VERSIONS_REGEX = /(7\.4\.\d\.\d)|(8\.[0-1]\.\d\.\d)/ const FORCE_RESET_SUPPORT_ADAPTERS: ReadonlyArray = ['Sonoff ZBDongle-E', 'ROUTER - Sonoff ZBDongle-E'] const ALWAYS_FORCE_RESET_ADAPTERS: ReadonlyArray<(typeof FORCE_RESET_SUPPORT_ADAPTERS)[number]> = ['ROUTER - Sonoff ZBDongle-E']