diff --git a/gui/src/hooks/firmware-update.ts b/gui/src/hooks/firmware-update.ts index 17288f3e0..60bb5ca53 100644 --- a/gui/src/hooks/firmware-update.ts +++ b/gui/src/hooks/firmware-update.ts @@ -129,9 +129,6 @@ export function checkForUpdate( if ( !device.hardwareInfo?.officialBoardType || - ![BoardType.SLIMEVR, BoardType.SLIMEVR_V1_2].includes( - device.hardwareInfo.officialBoardType - ) || !semver.valid(currentFirmwareRelease.version) || !semver.valid(device.hardwareInfo.firmwareVersion?.toString() ?? 'none') ) { @@ -143,6 +140,14 @@ export function checkForUpdate( currentFirmwareRelease.version ); + if ( + ![BoardType.SLIMEVR, BoardType.SLIMEVR_V1_2].includes( + device.hardwareInfo.officialBoardType + ) + ) { + return canUpdate ? 'unavailable' : 'updated'; + } + if ( canUpdate && device.hardwareStatus?.batteryPctEstimate != null &&