From: peter Date: Fri, 14 Mar 2008 09:55:34 +0000 (+0000) Subject: Forces an emission of PDO by resetting the COB of the last message X-Git-Url: http://rtime.felk.cvut.cz/gitweb/CanFestival-3.git/commitdiff_plain/1671b730be9df63884d57d5e8dfeee499555723a Forces an emission of PDO by resetting the COB of the last message --- diff --git a/examples/AVR/Slave/ds401.c b/examples/AVR/Slave/ds401.c index 7c9a93e..4ab60bd 100644 --- a/examples/AVR/Slave/ds401.c +++ b/examples/AVR/Slave/ds401.c @@ -49,7 +49,11 @@ unsigned char digital_input_handler(CO_Data* d, unsigned char *newInput, unsigne newInput++; } if (transmission) + { + /* force emission of PDO by artificially changing last emitted*/ + d->PDO_status[0].last_message.cob_id = 0; sendPDOevent(d); + } return 1; }