Subversion Repositories HomeAutomation

Rev

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

Rev 2125 Rev 2126
Line 194... Line 194...
194
    if (levelInt  >= 0 && levelInt <= 16) {
194
    if (levelInt  >= 0 && levelInt <= 16) {
195
        dataInt += 549755813888; //Set MSB
195
        dataInt += 549755813888; //Set MSB
196
        switch(levelInt) {
196
        switch(levelInt) {
197
          case 0:
197
          case 0:
198
            dataInt -= 549755813888; //Clear MSB
198
            dataInt -= 549755813888; //Clear MSB
-
 
199
 
-
 
200
            var b = dataInt | 1;
-
 
201
 
-
 
202
            dataInt |= 134217728;
-
 
203
           
-
 
204
            var c = dataInt >>> 1;
-
 
205
            dataInt = (c * 2) + (b & 1);
199
            //dataInt |= 134217728;
206
            //dataInt |= 134217728;
200
            levelInt = 0;
207
            levelInt = 0;
201
            break;
208
            break;
202
          case 1:
209
          case 1:
203
            levelInt = 15;
210
            levelInt = 15;