We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28deb35 commit 0236a05Copy full SHA for 0236a05
1 file changed
gui/src/hooks/firmware-update.ts
@@ -129,9 +129,6 @@ export function checkForUpdate(
129
130
if (
131
!device.hardwareInfo?.officialBoardType ||
132
- ![BoardType.SLIMEVR, BoardType.SLIMEVR_V1_2].includes(
133
- device.hardwareInfo.officialBoardType
134
- ) ||
135
!semver.valid(currentFirmwareRelease.version) ||
136
!semver.valid(device.hardwareInfo.firmwareVersion?.toString() ?? 'none')
137
) {
@@ -143,6 +140,14 @@ export function checkForUpdate(
143
140
currentFirmwareRelease.version
144
141
);
145
142
+ if (
+ ![BoardType.SLIMEVR, BoardType.SLIMEVR_V1_2].includes(
+ device.hardwareInfo.officialBoardType
146
+ )
147
+ ) {
148
+ return canUpdate ? 'unavailable' : 'updated';
149
+ }
150
+
151
152
canUpdate &&
153
device.hardwareStatus?.batteryPctEstimate != null &&
0 commit comments