mirror of https://github.com/ARMmbed/mbed-os.git
Fix compiler warning for deprecated function call
Replaced the deprecated function call .attach() with an assignmentpull/4900/head
parent
1c948283be
commit
cdca13798b
|
@ -38,7 +38,7 @@ CAN::CAN(PinName rd, PinName td, int hz) : _can(), _irq() {
|
||||||
// No lock needed in constructor
|
// No lock needed in constructor
|
||||||
|
|
||||||
for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) {
|
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);
|
can_init_freq(&_can, rd, td, hz);
|
||||||
|
|
Loading…
Reference in New Issue