GuoZhiyong / gsmmodem

Automatically exported from code.google.com/p/gsmmodem
1 stars 2 forks source link

PDUEncoding.cs中ServiceCenterAddress属性中len不应该减2吧 #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PDUEncoding.cs中ServiceCenterAddress属性get中
 get
            {
                int len = 2 * Convert.ToInt32(serviceCenterAddress.Substring(0, 2), 16);
                string result = serviceCenterAddress.Substring(4, len - 2);//len不应该-2吧,len本身就是通过前两位计算的短信中心长度(没把前两位列入len计算范围,所以没必要-2吧)

                result = ParityChange(result);
                result = result.TrimEnd('F', 'f');
                return result;
            }

Original issue reported on code.google.com by duhongyu...@gmail.com on 20 Sep 2011 at 7:13

GoogleCodeExporter commented 9 years ago
这个问题是我错了。收回。抱歉。

Original comment by duhongyu...@gmail.com on 20 Sep 2011 at 7:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
没事,遇到问题欢迎提出啊
由于比较忙,没有及时回复,不好意思啊

Original comment by xiaoa0...@gmail.com on 22 Sep 2011 at 3:03