Skip to content

Commit 0236a05

Browse files
authored
Allow showing 'Up to date' version for third-party trackers (#1756)
1 parent 28deb35 commit 0236a05

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

gui/src/hooks/firmware-update.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ export function checkForUpdate(
129129

130130
if (
131131
!device.hardwareInfo?.officialBoardType ||
132-
![BoardType.SLIMEVR, BoardType.SLIMEVR_V1_2].includes(
133-
device.hardwareInfo.officialBoardType
134-
) ||
135132
!semver.valid(currentFirmwareRelease.version) ||
136133
!semver.valid(device.hardwareInfo.firmwareVersion?.toString() ?? 'none')
137134
) {
@@ -143,6 +140,14 @@ export function checkForUpdate(
143140
currentFirmwareRelease.version
144141
);
145142

143+
if (
144+
![BoardType.SLIMEVR, BoardType.SLIMEVR_V1_2].includes(
145+
device.hardwareInfo.officialBoardType
146+
)
147+
) {
148+
return canUpdate ? 'unavailable' : 'updated';
149+
}
150+
146151
if (
147152
canUpdate &&
148153
device.hardwareStatus?.batteryPctEstimate != null &&

0 commit comments

Comments
 (0)