* updated with NULL check for irq_handler.

pull/1297/head
akhilpanayam 2015-07-17 16:29:54 +05:30 committed by Karthik Purushothaman
parent e1c0fea8b7
commit a4fc70d463
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ void gpio_irq(void)
} else {
event = IRQ_FALL;
}
irq_handler(channel_ids[current_channel], event);
if(irq_handler) {
irq_handler(channel_ids[current_channel], event);
}
}
}
}