Subversion Repositories HomeAutomation

Rev

Rev 1175 | Rev 1182 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1175 Rev 1181
Line 128... Line 128...
128
{
128
{
129
}
129
}
130
 
130
 
131
Display.prototype.rotaryPosUpdate = function(SwitchId)
131
Display.prototype.rotaryPosUpdate = function(SwitchId)
132
{
132
{
-
 
133
    for (var i = 0; i < myRotaryService.getSteps(SwitchId); i++)
-
 
134
    {
-
 
135
        if (myRotaryService.getDirection(SwitchId) == "Clockwise")
-
 
136
        {
-
 
137
            this.currentMenuItem.doRight();
-
 
138
        }
-
 
139
        else
-
 
140
        {
-
 
141
            this.currentMenuItem.doLeft();
-
 
142
        }
-
 
143
    }
-
 
144
   
133
}
145
}
134
 
146
 
135
Display.prototype.rotaryBtnUpdate = function(SwitchId)
147
Display.prototype.rotaryBtnUpdate = function(SwitchId)
136
{
148
{
137
    if (myRotaryService.getButtonStatus(SwitchId) == "Released")
149
    if (myRotaryService.getButtonStatus(SwitchId) == "Released")
138
    {
150
    {
139
        this.currentMenuItem.doPress();
151
        this.currentMenuItem.doPress();
140
    }
152
    }
141
}
153
}
142
 
154
 
-
 
155
Display.prototype.lcdOffline = function()
-
 
156
{
-
 
157
    /* If we have no interval timer running do nothing */
-
 
158
    if (this.myInterval != null)
-
 
159
    {
-
 
160
        /* Stop the interval */
-
 
161
        this.myInterval.stop();
-
 
162
    }
-
 
163
}
143
 
164
 
144
Display.prototype.lcdOnline = function()
165
Display.prototype.lcdOnline = function()
145
{
166
{
146
    /* If service is not online do nothing */
167
    /* If service is not online do nothing */
147
    if (this.myLCDService.isOnline())
168
    if (this.myLCDService.isOnline())