author | frdupin |
Wed, 13 Dec 2006 15:36:30 +0100 | |
changeset 56 | 904abfb26abf |
parent 55 | 96173dd44f2c |
child 57 | 522ece4057d2 |
--- a/examples/gene_SYNC_HCS12/appli.c Wed Dec 13 14:48:04 2006 +0100 +++ b/examples/gene_SYNC_HCS12/appli.c Wed Dec 13 15:36:30 2006 +0100 @@ -441,7 +441,9 @@ Message m; if (f_can_receive(0, &m)) { //MSG_WAR(0x3F36, "Msg received", m.cob_id.w); + lock(); // Not to have interruptions by timer, which can corrupt the data canDispatch(&gene_SYNC_Data, &m); + unlock(); } }