diff --git a/src/models/Device.ts b/src/models/Device.ts index ae03634..7b25c13 100644 --- a/src/models/Device.ts +++ b/src/models/Device.ts @@ -182,6 +182,17 @@ export class Device { } private versionComparison(deviceVersion: string, requiredVersion: string): boolean { + // Feature explicitly not supported on this platform + if (!requiredVersion || requiredVersion === "N/A") { + return false; + } + + // Device firmware missing / unset + if (!deviceVersion || deviceVersion.trim() === "") { + return false; + } + + //compare the versions const parse = (v: string) => { const [core, pre] = v.split("-"); const parts = core.split(".").map(n => parseInt(n, 10));