equal
deleted
inserted
replaced
259 m->rtr = 0; |
259 m->rtr = 0; |
260 else |
260 else |
261 m->rtr = 1; |
261 m->rtr = 1; |
262 m->len = peakMsg.LEN; /* count of data bytes (0..8) */ |
262 m->len = peakMsg.LEN; /* count of data bytes (0..8) */ |
263 for (data = 0; data < peakMsg.LEN; data++) |
263 for (data = 0; data < peakMsg.LEN; data++) |
264 m->Data[data] = peakMsg.DATA[data]; /* data bytes, up to 8 */ |
264 m->data[data] = peakMsg.DATA[data]; /* data bytes, up to 8 */ |
265 #if defined DEBUG_MSG_CONSOLE_ON |
265 #if defined DEBUG_MSG_CONSOLE_ON |
266 MSG("in : "); |
266 MSG("in : "); |
267 print_message(m); |
267 print_message(m); |
268 #endif |
268 #endif |
269 } |
269 } |
299 peakMsg.MSGTYPE = MSGTYPE_RTR; /* bits of MSGTYPE_ */ |
299 peakMsg.MSGTYPE = MSGTYPE_RTR; /* bits of MSGTYPE_ */ |
300 |
300 |
301 peakMsg.LEN = m->len; |
301 peakMsg.LEN = m->len; |
302 /* count of data bytes (0..8) */ |
302 /* count of data bytes (0..8) */ |
303 for (data = 0; data < m->len; data++) |
303 for (data = 0; data < m->len; data++) |
304 peakMsg.DATA[data] = m->Data[data]; /* data bytes, up to 8 */ |
304 peakMsg.DATA[data] = m->data[data]; /* data bytes, up to 8 */ |
305 |
305 |
306 do |
306 do |
307 { |
307 { |
308 #ifdef PCAN2_HEADER_ |
308 #ifdef PCAN2_HEADER_ |
309 // if not the first handler |
309 // if not the first handler |