Cannot convert int to byte exception in Read(byte[], int, int) method

This line in your Read(byte[], int, int) method throws an exception: buffer[bytesRead + offset] = serialPort.ReadByte(); because serialPort.ReadByte() actually returns an int, which must be cast ...

Id #1411 | Release: None | Updated: Jun 26, 2012 at 5:05 PM by mikernet | Created: Jun 26, 2012 at 5:05 PM by mikernet

  • 1-1 of 1 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items