Skip to content

Commit

Permalink
fixed missing brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Apr 27, 2019
1 parent 464ad57 commit 1d72112
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 10 deletions.
4 changes: 2 additions & 2 deletions patchsource/www/rega/esp/side.inc
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@
Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
}

if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMain != -1) {
if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
if(iV == "1") {
! This is the default string for 'all values not used'
iV = "0x02,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x03";
Expand Down Expand Up @@ -576,7 +576,7 @@
if (statusDisplayEPaperDevice != -1) {
Write( '<span id="setStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
Write( '<span id="setHbStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');"><img src="/ise/img/notepad.png" /></span>' );
}
if (rgbw_controller != -1) {
Expand Down
4 changes: 2 additions & 2 deletions patchsource/www/rega/esp/side.inc-3.45
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
}

if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
if(iV == "1") {
! This is the default string for 'all values not used'
iV = "0x02,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x03";
Expand Down Expand Up @@ -602,7 +602,7 @@
if (statusDisplayEPaperDevice != -1) {
Write( '<span id="setStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
Write( '<span id="setHbStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');"><img src="/ise/img/notepad.png" /></span>' );
}
if (ePaperAcousticDisplay != -1) {
Expand Down
6 changes: 3 additions & 3 deletions src/addon/patch/ge_345/side.inc.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- ./patchsource/www/rega/esp/side.inc.orig 2019-03-30 19:10:05.000000000 +0100
+++ ./patchsource/www/rega/esp/side.inc 2019-04-23 21:11:37.000000000 +0200
+++ ./patchsource/www/rega/esp/side.inc 2019-04-27 21:32:41.000000000 +0200
@@ -10,6 +10,9 @@
integer iVP = oSD.DestinationValueParam();
integer iVPT = oSD.DestinationValueParamType();
Expand Down Expand Up @@ -35,7 +35,7 @@
}
-
+
+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
+ if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
+ if(iV == "1") {
+ ! This is the default string for 'all values not used'
+ iV = "0x02,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x03";
Expand Down Expand Up @@ -70,7 +70,7 @@
if (statusDisplayEPaperDevice != -1) {
Write( '<span id="setStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
+ if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
+ Write( '<span id="setHbStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');"><img src="/ise/img/notepad.png" /></span>' );
+ }
if (ePaperAcousticDisplay != -1) {
Expand Down
6 changes: 3 additions & 3 deletions src/addon/patch/le_343/side.inc.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- ./patchsource/www/rega/esp/side.inc.orig 2019-02-23 12:13:34.000000000 +0100
+++ ./patchsource/www/rega/esp/side.inc 2019-04-23 21:11:37.000000000 +0200
+++ ./patchsource/www/rega/esp/side.inc 2019-04-27 21:34:13.000000000 +0200
@@ -12,9 +12,12 @@
string hm_oucfm = "HM-OU-CFM-Pl";
string hm_oucfmTW = "HM-OU-CFM-TW";
Expand Down Expand Up @@ -39,7 +39,7 @@
Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
}

+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMain != -1) {
+ if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
+ if(iV == "1") {
+ ! This is the default string for 'all values not used'
+ iV = "0x02,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x03";
Expand Down Expand Up @@ -76,7 +76,7 @@
if (statusDisplayEPaperDevice != -1) {
Write( '<span id="setStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
+ if ((statusHbDisplayEPaperDevice != -1) || (statusHbDisplayEPaperDeviceMains != -1)) {
+ Write( '<span id="setHbStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');"><img src="/ise/img/notepad.png" /></span>' );
+ }
if (rgbw_controller != -1) {
Expand Down
78 changes: 78 additions & 0 deletions src/addon/patch/revoke/ge_345/0002-side.inc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
--- ./patchsource/www/rega/esp/side.inc.orig 2019-03-30 19:10:05.000000000 +0100
+++ ./patchsource/www/rega/esp/side.inc 2019-04-23 21:11:37.000000000 +0200
@@ -10,6 +10,9 @@
integer iVP = oSD.DestinationValueParam();
integer iVPT = oSD.DestinationValueParamType();

+ string hb_oump3led = "HB-OU-MP3-LED";
+ string hb_statusDisplayEPaper = "HB-DIS-EP-42BW";
+ string hb_statusDisplayEPaperMains = "HB-DIS-EP-42BW-MAINS";
string hm_ouled16 = "HM-OU-LED16";
string hm_oucfm = "HM-OU-CFM-Pl";
string hm_oucfmTW = "HM-OU-CFM-TW";
@@ -461,6 +464,9 @@
! Label() presents the type id of the channel, e.g. HM-OU-LED16 or HM-OU-CFM-Pl
string chLabel = oCH.Label();

+ integer oump3led = chLabel.Find(hb_oump3led);
+ integer statusHbDisplayEPaperDevice = hb_statusDisplayEPaper.Find(chLabel);
+ integer statusHbDisplayEPaperDeviceMains = hb_statusDisplayEPaperMains.Find(chLabel);
integer ouled16 = chLabel.Find(hm_ouled16);
integer oucfm = chLabel.Find(hm_oucfm);
integer oucfmTW = chLabel.Find(hm_oucfmTW);
@@ -477,6 +483,8 @@

if ((statusDisplayDevice != -1)
|| (statusDisplayEPaperDevice != -1)
+ || (statusHbDisplayEPaperDevice != -1)
+ || (statusHbDisplayEPaperDeviceMains != -1)
|| (ePaperAcousticDisplay != -1)
|| (rgbw_controller != -1)
|| ((jalousieActor != - 1) && (oDP.HSSID().Find("LEVEL_COMBINED") != -1))
@@ -497,7 +505,15 @@
}
Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
}
-
+
+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
+ if(iV == "1") {
+ ! This is the default string for 'all values not used'
+ iV = "0x02,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x03";
+ }
+ Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
+ }
+
if (ePaperAcousticDisplay != -1) {
if(iV == "0") {
! This is the default string for 'all values not used'
@@ -550,6 +566,9 @@
}

if((ouled16 == -1)
+ && (oump3led == -1)
+ && (statusHbDisplayEPaperDevice == -1)
+ && (statusHbDisplayEPaperDeviceMains == -1)
&& (oucfm == -1)
&& (oucfmTW == -1)
&& (oucmpcb == -1)
@@ -571,6 +590,9 @@
if((oucfm != -1) || (oucfmTW != -1) || (oucmpcb != -1)) {
Write( '<span class="CLASS02401" onclick="ChangeOUCFMValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
}
+ if(oump3led != -1) {
+ Write( '<span class="CLASS02401" onclick="ChangeHBOUCFMValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
+ }
if (partyDialogDevice != -1) {
Write( '<span id="setPartyMode" class="CLASS02401" onclick="SetPartyMode(this);"><img src="/ise/img/notepad.png" /></span>' );
}
@@ -580,6 +602,9 @@
if (statusDisplayEPaperDevice != -1) {
Write( '<span id="setStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
+ Write( '<span id="setHbStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');"><img src="/ise/img/notepad.png" /></span>' );
+ }
if (ePaperAcousticDisplay != -1) {
Write( '<span id="ePaperAcousticDisplay'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'ACOUSTIC_DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
84 changes: 84 additions & 0 deletions src/addon/patch/revoke/le_343/0002-side.inc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
--- ./patchsource/www/rega/esp/side.inc.orig 2019-02-23 12:13:34.000000000 +0100
+++ ./patchsource/www/rega/esp/side.inc 2019-04-23 21:11:37.000000000 +0200
@@ -12,9 +12,12 @@
string hm_oucfm = "HM-OU-CFM-Pl";
string hm_oucfmTW = "HM-OU-CFM-TW";
string hm_oucmpcb = "HM-OU-CM-PCB";
+ string hb_oump3led = "HB-OU-MP3-LED";
string hm_partyDialog = "HM-CC-RT-DN HM-TC-IT-WM-W-EU HM-CC-VG-1";
string hm_statusDisplay = "HM-Dis-WM55";
string hm_statusDisplayEPaper = "HM-Dis-EP-WM55";
+ string hb_statusDisplayEPaper = "HB-DIS-EP-42BW";
+ string hb_statusDisplayEPaperMains = "HB-DIS-EP-42BW-MAINS";
string hm_rgbw_controller = "HM-LC-RGBW-WM";
string hm_jalousieActor = "HM-LC-Ja1PBU";
string heatingClimateControlTransceiver = "HEATING_CLIMATECONTROL_TRANSCEIVER";
@@ -451,9 +454,12 @@
integer oucfm = chLabel.Find(hm_oucfm);
integer oucfmTW = chLabel.Find(hm_oucfmTW);
integer oucmpcb = chLabel.Find(hm_oucmpcb);
+ integer oump3led = chLabel.Find(hb_oump3led);
integer partyDialogDevice = hm_partyDialog.Find(chLabel);
integer statusDisplayDevice = hm_statusDisplay.Find(chLabel);
integer statusDisplayEPaperDevice = hm_statusDisplayEPaper.Find(chLabel);
+ integer statusHbDisplayEPaperDevice = hb_statusDisplayEPaper.Find(chLabel);
+ integer statusHbDisplayEPaperDeviceMains = hb_statusDisplayEPaperMains.Find(chLabel);
integer rgbw_controller = chLabel.Find(hm_rgbw_controller);
integer i_vir_lg_rgb_dim = chLabel.Find(s_vir_lg_rgb_dim);
integer i_vir_lg_rgbw_dim = chLabel.Find(s_vir_lg_rgbw_dim);
@@ -462,6 +468,8 @@

if ((statusDisplayDevice != -1)
|| (statusDisplayEPaperDevice != -1)
+ || (statusHbDisplayEPaperDevice != -1)
+ || (statusHbDisplayEPaperDeviceMains != -1)
|| (rgbw_controller != -1)
|| ((jalousieActor != - 1) && (oDP.HSSID().Find("LEVEL_COMBINED") != -1))
|| (((i_vir_lg_rgb_dim != - 1) && (oDP.HSSID().Find("RGB") != -1)) || ((i_vir_lg_rgbw_dim != - 1) && (oDP.HSSID().Find("RGBW") != -1)) || (( i_vir_lg_group != - 1) && (oDP.HSSID().Find("RGBW") != -1)))
@@ -482,6 +490,13 @@
Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
}

+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMain != -1) {
+ if(iV == "1") {
+ ! This is the default string for 'all values not used'
+ iV = "0x02,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x03";
+ }
+ Write( '<input id="prgStringOptionValue'#oSD.ID()#'" onfocus="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');" type="text" class="SelectBox" size="10" value="'#iV#'" onchange="iseSingleDestination.SetValue('#oSD.ID()#',this.value,\'STRING\');" /> ' );
+ }
if (rgbw_controller != -1) {

if (iV == "0") {
@@ -529,9 +544,12 @@
&& (oucfm == -1)
&& (oucfmTW == -1)
&& (oucmpcb == -1)
+ && (oump3led == -1)
&& (partyDialogDevice == -1)
&& (statusDisplayDevice == -1)
&& (statusDisplayEPaperDevice == -1)
+ && (statusHbDisplayEPaperDevice == -1)
+ && (statusHbDisplayEPaperDeviceMains == -1)
&& (rgbw_controller == -1)
&& (jalousieActor == -1)
&& (i_vir_lg_rgb_dim == -1)
@@ -546,6 +564,9 @@
if((oucfm != -1) || (oucfmTW != -1) || (oucmpcb != -1)) {
Write( '<span class="CLASS02401" onclick="ChangeOUCFMValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
}
+ if(oump3led != -1) {
+ Write( '<span class="CLASS02401" onclick="ChangeHBOUCFMValue('#oSD.ID()#');"><img src="/ise/img/notepad.png" /></span>' );
+ }
if (partyDialogDevice != -1) {
Write( '<span id="setPartyMode" class="CLASS02401" onclick="SetPartyMode(this);"><img src="/ise/img/notepad.png" /></span>' );
}
@@ -555,6 +576,9 @@
if (statusDisplayEPaperDevice != -1) {
Write( '<span id="setStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP\');"><img src="/ise/img/notepad.png" /></span>' );
}
+ if (statusHbDisplayEPaperDevice != -1 || statusHbDisplayEPaperDeviceMains != -1) {
+ Write( '<span id="setHbStatusDisplayEPaper'#oSD.ID()#'" class="CLASS02401" onclick="SetStatusDisplay('#oSD.ID()#',\'DIS-EP42BW\');"><img src="/ise/img/notepad.png" /></span>' );
+ }
if (rgbw_controller != -1) {
Write( '<span id="setRGBWController'#oSD.ID()#'" class="CLASS02401" onclick="SetRGBWController('#oSD.ID()#',\''#oDP.HSSID()#'\');"><img src="/ise/img/notepad.png" /></span>' );
}

0 comments on commit 1d72112

Please sign in to comment.