From 1b870c4ea13977431c01c44d7f6aa3f117e126c7 Mon Sep 17 00:00:00 2001 From: Philipp Engler Date: Sat, 25 May 2024 22:17:23 +0200 Subject: [PATCH] changed max value to 3000W changed max value to 3000W because ps,-2 and psm-2 qhj does not support 3680W --- .../0185-WebUI-Fix-Missing-Units-PSM2.patch | 25 ++++++++++++------- .../occu/WebUI/www/config/uiElements.tcl | 14 +++++------ 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch index db950b8420..13bfa9ce02 100644 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch +++ b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2.patch @@ -11,24 +11,31 @@ } --- occu/WebUI/www/config/uiElements.tcl.orig +++ occu/WebUI/www/config/uiElements.tcl -@@ -22,6 +22,8 @@ - if {[string equal $extraparam "TX_THRESHOLD_POWER"] == 1} { +@@ -23,6 +23,8 @@ switch [string tolower $devType] { hmip-psm - -+ hmip-psm-2 - -+ "hmip-psm-2 qhj" - hmip-fsm16 {return 3680.0} ++ hmip-psm-2 - ++ "hmip-psm-2 qhj" {return 3000.0} hmip-bsm - hmip-fsm {return 1150.0} -@@ -33,6 +35,8 @@ + hmip-usbsm {return 60.0} +@@ -33,10 +35,12 @@ if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { hmip-psm - -+ hmip-psm-2 - -+ "hmip-psm-2 qhj" - - hmip-fsm16 {return "3680.0"} +- hmip-fsm16 {return "3680.0"} ++ hmip-fsm16 {return "3680.00"} ++ hmi-psm-2 - ++ "hmip-psm-2 qhj" {return "3000.00"} hmip-bsm - - hmip-fsm {return "1150.0"} +- hmip-fsm {return "1150.0"} +- hmip-usbsm {return "60.0"} ++ hmip-fsm {return "1150.00"} ++ hmip-usbsm {return "60.00"} + default {return "max value not available"} + } + } @@ -172,6 +176,8 @@ proc getUserDefinedCondTXThresholdUnitMinMaxDescr {devType param} { switch [string tolower $devType] { diff --git a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/uiElements.tcl b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/uiElements.tcl index 51b2def599..39ccfd0c17 100644 --- a/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/uiElements.tcl +++ b/buildroot-external/patches/occu/0185-WebUI-Fix-Missing-Units-PSM2/occu/WebUI/www/config/uiElements.tcl @@ -22,9 +22,9 @@ proc getUserDefinedMaxValue {devType {extraparam ""}} { if {[string equal $extraparam "TX_THRESHOLD_POWER"] == 1} { switch [string tolower $devType] { hmip-psm - - hmip-psm-2 - - "hmip-psm-2 qhj" - hmip-fsm16 {return 3680.0} + hmip-psm-2 - + "hmip-psm-2 qhj" {return 3000.0} hmip-bsm - hmip-fsm {return 1150.0} hmip-usbsm {return 60.0} @@ -35,12 +35,12 @@ proc getUserDefinedMaxValue {devType {extraparam ""}} { if {([string equal $extraparam "COND_TX_THRESHOLD_LO"] == 1) || ([string equal $extraparam "COND_TX_THRESHOLD_HI"] == 1)} { switch [string tolower $devType] { hmip-psm - - hmip-psm-2 - - "hmip-psm-2 qhj" - - hmip-fsm16 {return "3680.0"} + hmip-fsm16 {return "3680.00"} + hmi-psm-2 - + "hmip-psm-2 qhj" {return "3000.00"} hmip-bsm - - hmip-fsm {return "1150.0"} - hmip-usbsm {return "60.0"} + hmip-fsm {return "1150.00"} + hmip-usbsm {return "60.00"} default {return "max value not available"} } }