drivers/win32/win32.c
changeset 652 3b5789c34499
parent 638 00bc03cb5606
child 687 e23df9586397
equal deleted inserted replaced
651:2a36570aa68c 652:3b5789c34499
   134 }
   134 }
   135 
   135 
   136 /***************************************************************************/
   136 /***************************************************************************/
   137 UNS8 canSend(CAN_PORT port, Message *m)
   137 UNS8 canSend(CAN_PORT port, Message *m)
   138 {
   138 {
   139 	UNS8 res;
   139 	UNS8 res = 1; //NOT OK
   140 	if (port && (m_canSend != NULL))
   140 	if (port && (m_canSend != NULL))
   141 	{
   141 	{
   142 		res = m_canSend(((CANPort*)port)->fd, m);
   142 		res = m_canSend(((CANPort*)port)->fd, m);
   143 		if (res) return 1; // OK
   143 	}
   144 	}
   144 	return res;
   145 	return 0; // NOT OK
       
   146 }
   145 }
   147 
   146 
   148 /***************************************************************************/
   147 /***************************************************************************/
   149 void canReceiveLoop(CAN_PORT port)
   148 void canReceiveLoop(CAN_PORT port)
   150 {
   149 {