Rev 1786 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1786 | Rev 2206 | ||
|---|---|---|---|
| Line 132... | Line 132... | ||
| 132 | if (this.mode != 2) { |
132 | if (this.mode != 2) { |
| 133 | row = 0; |
133 | row = 0; |
| 134 | for (var i = this.window_low; i < this.dimmers.length && i <= this.window_high; i++) { |
134 | for (var i = this.window_low; i < this.dimmers.length && i <= this.window_high; i++) { |
| 135 | var last_value_string = Storage_GetParameter("LastValues", this.dimmers[i]); |
135 | var last_value_string = Storage_GetParameter("LastValues", this.dimmers[i]); |
| 136 | var last_value = eval("(" + last_value_string + ")"); |
136 | var last_value = eval("(" + last_value_string + ")"); |
| - | 137 | ||
| 137 | if (this.mode == 1 && this.currentDimmerItem == i) { |
138 | if (this.mode == 1 && this.currentDimmerItem == i) { |
| 138 | Display_Print(this.display, 0, row, this.parentDisplay.lcdCenterText(" -"+ this.dimmerNames[i] )); |
139 | Display_Print(this.display, 0, row, this.parentDisplay.lcdCenterText(" -"+ this.dimmerNames[i] )); |
| 139 | } else if (this.mode == 3 && this.currentDimmerItem == i) { |
140 | } else if (this.mode == 3 && this.currentDimmerItem == i) { |
| 140 | Display_Print(this.display, 0, row, this.parentDisplay.lcdCenterText("<>"+ this.dimmerNames[i] )); |
141 | Display_Print(this.display, 0, row, this.parentDisplay.lcdCenterText("<>"+ this.dimmerNames[i] )); |
| 141 | } else { |
142 | } else { |
| 142 | Display_Print(this.display, 0, row, this.parentDisplay.lcdCenterText(" "+ this.dimmerNames[i] )); |
143 | Display_Print(this.display, 0, row, this.parentDisplay.lcdCenterText(" "+ this.dimmerNames[i] )); |
| 143 | } |
144 | } |
| - | 145 | //Log("--> "+this.dimmerNames[i]+" Value:"+last_value["Level"]["value"]+"\n"); |
|
| 144 | Display_Print(this.display, 17, row,last_value["Level"]["value"]); |
146 | Display_Print(this.display, 17, row, ""+last_value["Level"]["value"]); |
| 145 | row++; |
147 | row++; |
| 146 | } |
148 | } |
| 147 | } else { |
149 | } else { |
| 148 | Display_Clear(this.display); |
150 | Display_Clear(this.display); |
| 149 | Display_Print(this.display,0, 0, this.parentDisplay.lcdCenterText("Tillbaka")); |
151 | Display_Print(this.display,0, 0, this.parentDisplay.lcdCenterText("Tillbaka")); |