For the .NET toolkit:
In the file LLRPDataType.cs on line 341 there is an attempt to convert an
unsigned short to a signed short.  This could lead to inaccurate results if
the unsigned short is large enough. Looks like a simple typo.


for (int i = 0; i < bD.Length; i++) s += Convert.ToInt16(bD[i]).ToString() +
" ";

should be 

for (int i = 0; i < bD.Length; i++) s += Convert.ToUInt16(bD[i]).ToString()
+ " ";

notice the Convert.ToUInt16 call

-Matt


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to