Skip to content

Commit e107e72

Browse files
committed
fix: improve firmware version check logic to support shipping firmware
1 parent d30b124 commit e107e72

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/Controller/Controller.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,13 @@ const Controller = () => {
424424
closeModal={() => setFirmwarModalOpen(false)}
425425
className="w-[40%]"
426426
>
427-
{(nightlyVersionFormat(deviceVersion) < 240114 &&
428-
getVersionType(deviceVersion) == "nightly") ||
429-
(stableVersionFormat(deviceVersion) < 200 &&
430-
getVersionType(deviceVersion) == "stable") ||
431-
deviceVersion === "" ? (
427+
{deviceVersion === "" ||
428+
(getVersionType(deviceVersion) === "nightly" &&
429+
nightlyVersionFormat(deviceVersion) < 240114 &&
430+
stableVersionFormat(deviceVersion) !== 2) ||
431+
(getVersionType(deviceVersion) === "stable" &&
432+
stableVersionFormat(deviceVersion) < 200 &&
433+
stableVersionFormat(deviceVersion) !== 2) ? (
432434
<p>
433435
Sorry, your firmware version is too old to support this feature.
434436
Please manually update to the latest stable or nightly build!

0 commit comments

Comments
 (0)