We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb7ab19 + cdca137 commit 02baee3Copy full SHA for 02baee3
drivers/CAN.cpp
@@ -38,7 +38,7 @@ CAN::CAN(PinName rd, PinName td, int hz) : _can(), _irq() {
38
// No lock needed in constructor
39
40
for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) {
41
- _irq[i].attach(donothing);
+ _irq[i] = callback(donothing);
42
}
43
44
can_init_freq(&_can, rd, td, hz);
0 commit comments