Subversion Repositories HomeAutomation

Rev

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

Rev 1646 Rev 1840
Line 201... Line 201...
201
            else// if (type == "uint")
201
            else// if (type == "uint")
202
            {
202
            {
203
                Protocol::Instance()->EncodeUint(databits, start_bit, bit_length, value);
203
                Protocol::Instance()->EncodeUint(databits, start_bit, bit_length, value);
204
            }
204
            }
205
           
205
 
206
            if (highest_bit < start_bit + bit_length - 1)
206
            if (highest_bit < start_bit + bit_length)
207
            {
207
            {
208
                highest_bit = start_bit + bit_length - 1;
208
                highest_bit = start_bit + bit_length;
209
            }
209
            }
210
        }
210
        }
211
       
211
       
212
        //LOG.Debug(databits.ToDebugString());
212
        //LOG.Debug(databits.ToDebugString());
213
       
213