--- a/drivers/can_uvccm_win32/can_uvccm_win32.cpp Tue Jan 22 10:27:13 2008 +0100
+++ b/drivers/can_uvccm_win32/can_uvccm_win32.cpp Wed Jan 23 10:35:52 2008 +0100
@@ -236,7 +236,7 @@
::memset(&msg, 0 , sizeof (msg));
char colon = 0, type = 0, request = 0;
std::istringstream buf(std::string(can_cmd_buf, bufsize));
- buf >> colon >> type >> std::hex >> msg.cob_id.w >> request;
+ buf >> colon >> type >> std::hex >> msg.cob_id >> request;
if (colon != ':' || (type != 'S' && type != 'X'))
{
bufsize = 0;
@@ -293,7 +293,7 @@
{
// build can_uvccm_win32 command string
std::ostringstream can_cmd_str;
- can_cmd_str << ":S" << std::hex << m.cob_id.w;
+ can_cmd_str << ":S" << std::hex << m.cob_id;
if (m.rtr == 1)
{
can_cmd_str << 'R' << (long)m.len;