From 2ab02a0349a95a74b5c5d08ddbf661998e6a7da5 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Tue, 15 Apr 2025 15:36:21 -0600 Subject: [PATCH] adding missing platforms into device.ts --- .../mapObjectControllers/AgMapController.tsx | 2 +- src/models/Device.ts | 26 ++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/maps/mapObjectControllers/AgMapController.tsx b/src/maps/mapObjectControllers/AgMapController.tsx index 5a330b8..e398e04 100644 --- a/src/maps/mapObjectControllers/AgMapController.tsx +++ b/src/maps/mapObjectControllers/AgMapController.tsx @@ -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, diff --git a/src/models/Device.ts b/src/models/Device.ts index da08742..b99510e 100644 --- a/src/models/Device.ts +++ b/src/models/Device.ts @@ -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 = new Map([ @@ -17,7 +23,13 @@ const featureVersions: Map = 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; }