Merge pull request #4900 from scartmell-arm/deprecated-function

Fix compiler warning for deprecated function call
pull/4886/merge
Jimmy Brisson 2017-08-21 10:37:30 -05:00 committed by GitHub
commit 02baee3c89
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ CAN::CAN(PinName rd, PinName td, int hz) : _can(), _irq() {
// No lock needed in constructor
for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) {
_irq[i].attach(donothing);
_irq[i] = callback(donothing);
}
can_init_freq(&_can, rd, td, hz);