drivers/can_uvccm_win32/can_uvccm_win32.cpp
changeset 267 96c688ebcde7
parent 255 7b9f36dbfe5f
child 365 9b76e0881beb
--- a/drivers/can_uvccm_win32/can_uvccm_win32.cpp	Tue Sep 04 17:47:46 2007 +0200
+++ b/drivers/can_uvccm_win32/can_uvccm_win32.cpp	Mon Sep 10 08:04:32 2007 +0200
@@ -73,7 +73,7 @@
 bool can_uvccm_win32::send(const Message *m)
    {
    if (m_port == INVALID_HANDLE_VALUE)
-      return false;
+      return true;
 
    // build can_uvccm_win32 command string
    std::string can_cmd;
@@ -93,8 +93,8 @@
    ::GetOverlappedResult(m_port, &overlapped, &bytes_written, FALSE);
 
    bool result = (bytes_written == can_cmd.size());
-
-   return result;
+   
+   return false;
    }