equal
deleted
inserted
replaced
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 { |