X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/043f872725a79617ec651d16d940c647ea184afc..bfac169862856611eeb16af24c8943f005f88e12:/lincan/src/can_devrtl.c diff --git a/lincan/src/can_devrtl.c b/lincan/src/can_devrtl.c index 37bbbf1..559c2db 100644 --- a/lincan/src/can_devrtl.c +++ b/lincan/src/can_devrtl.c @@ -111,10 +111,15 @@ void * can_chip_worker_thread(void *arg) for(i=0;imax_objects;i++){ if((obj=chip->msgobj[i])==NULL) continue; - if(!can_msgobj_test_and_clear_fl(obj,TX_REQUEST)) - continue; - DEBUGMSG("Calling wakeup_tx\n"); - chip->chipspecops->wakeup_tx(chip, obj); + if(can_msgobj_test_fl(obj,TX_REQUEST)) { + DEBUGMSG("Calling wakeup_tx\n"); + chip->chipspecops->wakeup_tx(chip, obj); + } + if(can_msgobj_test_fl(obj,FILTCH_REQUEST)) { + DEBUGMSG("Calling filtch_rq\n"); + if(chip->chipspecops->filtch_rq) + chip->chipspecops->filtch_rq(chip, obj); + } } continue; }