Skip to content

Commit 370956d

Browse files
nattgrishefloryd
andauthored
Don't trigger disabled PDOs
Co-authored-by: Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>
1 parent cc77085 commit 370956d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/co_pdo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@ void co_pdo_trigger_with_obj (co_net_t * net, uint16_t index, uint8_t subindex)
619619
for (ix = 0; ix < MAX_TX_PDO; ix++)
620620
{
621621
co_pdo_t * pdo = &net->pdo_tx[ix];
622-
622+
if (pdo->cobid & CO_COBID_INVALID)
623+
continue;
624+
623625
for (n = 0; n < pdo->number_of_mappings; n++)
624626
{
625627
if (pdo->entries[n] == entry)

0 commit comments

Comments
 (0)