X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/c3adf4f9af7ee68df8bb65fafa4dbcbdcc4895ba..fdf877c54ec2598864f6193e8e1fbaedb5c05efb:/lincan/src/hcan2.c diff --git a/lincan/src/hcan2.c b/lincan/src/hcan2.c index 23d15ab..f81ae58 100644 --- a/lincan/src/hcan2.c +++ b/lincan/src/hcan2.c @@ -687,8 +687,10 @@ int hcan2_filtch_rq(struct canchip_t *chip, struct msgobj_t * obj) /* HCAN2 uses oposite logic for LAFM: 1-ignore bit, 0-use bit as mask */ +#if myDEBUG DEBUGMSG("CNT: %d ID: 0x%08x MASK: 0x%08x\n", num, (uint32_t) (filter.id) & 0x1fffffff, (uint32_t) (~filter.mask) & 0x1fffffff); - +#endif + if (filter.flags & MSG_EXT) /* Extended ID */ return hcan2_extended_mask(chip, filter.id, ~filter.mask); else /* Standard ID */