X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/fc52afd2db4b338e8ca30467f475cba1f1e40ebd..f4eab9f1647cee07d82160bd62f5f26db0734fbc:/lincan/src/i82527.c diff --git a/lincan/src/i82527.c b/lincan/src/i82527.c index 5ef9d8f..eb89220 100644 --- a/lincan/src/i82527.c +++ b/lincan/src/i82527.c @@ -632,6 +632,7 @@ int i82527_irq_handler(int irq, struct canchip_t *chip) unsigned char msgcfg; unsigned irq_register; + unsigned status_register; unsigned object; struct msgobj_t *obj; int loop_cnt=CHIP_MAX_IRQLOOP; @@ -658,7 +659,8 @@ int i82527_irq_handler(int irq, struct canchip_t *chip) DEBUGMSG("i82527: iIRQ 0x%02x\n",irq_register); if (irq_register == 0x01) { - DEBUGMSG("Status register: 0x%x\n",can_read_reg(chip, iSTAT)); + status_register=can_read_reg(chip, iSTAT); + CANMSG("Status register: 0x%x\n",status_register); continue; /*return CANCHIP_IRQ_NONE;*/ }