equal
deleted
inserted
replaced
525 memset(&pdo, 0, sizeof(pdo)); |
525 memset(&pdo, 0, sizeof(pdo)); |
526 if (buildPDO (d, pdoNum, &pdo)) |
526 if (buildPDO (d, pdoNum, &pdo)) |
527 { |
527 { |
528 MSG_ERR (0x3907, " Couldn't build TPDO number : ", |
528 MSG_ERR (0x3907, " Couldn't build TPDO number : ", |
529 pdoNum); |
529 pdoNum); |
530 return; |
530 return 0; |
531 } |
531 } |
532 |
532 |
533 /*Compare new and old PDO */ |
533 /*Compare new and old PDO */ |
534 if (d->PDO_status[pdoNum].last_message.cob_id == pdo.cob_id |
534 if (d->PDO_status[pdoNum].last_message.cob_id == pdo.cob_id |
535 && d->PDO_status[pdoNum].last_message.len == pdo.len |
535 && d->PDO_status[pdoNum].last_message.len == pdo.len |
536 && memcmp(d->PDO_status[pdoNum].last_message.data, |
536 && memcmp(d->PDO_status[pdoNum].last_message.data, |
537 pdo.data, 8) == 0 |
537 pdo.data, 8) == 0 |
538 ) |
538 ) |
539 { |
539 { |
540 /* No changes -> go to next pdo */ |
540 /* No changes -> go to next pdo */ |
541 return; |
541 return 0; |
542 } |
542 } |
543 else |
543 else |
544 { |
544 { |
545 |
545 |
546 TIMEVAL EventTimerDuration; |
546 TIMEVAL EventTimerDuration; |
576 PDO_INHIBITED; |
576 PDO_INHIBITED; |
577 } |
577 } |
578 |
578 |
579 sendPdo(d, pdoNum, &pdo); |
579 sendPdo(d, pdoNum, &pdo); |
580 } |
580 } |
|
581 return 1; |
581 } |
582 } |
582 |
583 |
583 void |
584 void |
584 PDOEventTimerAlarm (CO_Data * d, UNS32 pdoNum) |
585 PDOEventTimerAlarm (CO_Data * d, UNS32 pdoNum) |
585 { |
586 { |