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:
parent
d2b2bd2f8b
commit
79c29f6f81
2 changed files with 32 additions and 23 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue