increasing the limit for conditions on devices running 2.1.9 to 4, and changing the button logic for adding and removing them

This commit is contained in:
csawatzky 2025-11-20 11:07:14 -06:00
parent d2b2bd2f8b
commit 79c29f6f81
2 changed files with 32 additions and 23 deletions

View file

@ -154,6 +154,18 @@ export class Device {
}
}
public maxConditions(): number {
let max = 2
switch (this.settings.platform) {
case pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR_BLACK:
case pond.DevicePlatform.DEVICE_PLATFORM_V2_WIFI_BLUE:
case pond.DevicePlatform.DEVICE_PLATFORM_V2_CELLULAR_BLUE:
case pond.DevicePlatform.DEVICE_PLATFORM_V2_ETHERNET_BLUE:
max = this.status.firmwareVersion >= "2.1.9" ? 4 : 2;
}
return max
}
public featureSupported(feature: string): boolean {
let versions = featureVersions.get(feature);
if (!versions) {