adding missing platforms into device.ts
This commit is contained in:
parent
51d37720ec
commit
2ab02a0349
2 changed files with 26 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ import { Result } from "@mapbox/mapbox-gl-geocoder";
|
|||
closeDrawers();
|
||||
setBagDrawer(true);
|
||||
setIgnoreFeatures(true);
|
||||
setObjectKey(b.key);
|
||||
setObjectKey(b.key());
|
||||
moveMap(
|
||||
b.centerLocation().latitude,
|
||||
b.centerLocation().longitude,
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@ interface FeatureVersionByPlatform {
|
|||
electron: string;
|
||||
v2Wifi: string;
|
||||
v2Cell: string;
|
||||
v2WifiS3: string;
|
||||
v2CellS3: string;
|
||||
v2CellBlack: string;
|
||||
v2CellGreen: string;
|
||||
v2WifiBlue: string;
|
||||
v2CellBlue: string;
|
||||
}
|
||||
|
||||
const featureVersions: Map<string, FeatureVersionByPlatform> = new Map([
|
||||
|
|
@ -17,7 +23,13 @@ const featureVersions: Map<string, FeatureVersionByPlatform> = new Map([
|
|||
photon: "1.19.64",
|
||||
electron: "1.19.64",
|
||||
v2Cell: "2.0.44",
|
||||
v2Wifi: "2.0.44"
|
||||
v2Wifi: "2.0.44",
|
||||
v2WifiS3: "2.0.44",
|
||||
v2CellS3: "2.0.44",
|
||||
v2CellBlack: "2.0.44",
|
||||
v2CellGreen: "2.0.44",
|
||||
v2WifiBlue: "2.0.44",
|
||||
v2CellBlue: "2.0.44"
|
||||
}
|
||||
]
|
||||
]);
|
||||
|
|
@ -94,6 +106,18 @@ export class Device {
|
|||
return this.status.firmwareVersion >= versions.v2Cell;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_WIFI:
|
||||
return this.status.firmwareVersion >= versions.v2Wifi;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_WIFI_S3:
|
||||
return this.status.firmwareVersion >= versions.v2WifiS3;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR_S3:
|
||||
return this.status.firmwareVersion >= versions.v2CellS3;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR_BLACK:
|
||||
return this.status.firmwareVersion >= versions.v2CellBlack;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR_GREEN:
|
||||
return this.status.firmwareVersion >= versions.v2CellGreen;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_WIFI_BLUE:
|
||||
return this.status.firmwareVersion >= versions.v2WifiBlue;
|
||||
case pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR_BLUE:
|
||||
return this.status.firmwareVersion >= versions.v2CellBlue;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue