From cdca13798b0314b37801873070bf74fca3398303 Mon Sep 17 00:00:00 2001 From: Steve Cartmell Date: Mon, 14 Aug 2017 12:10:31 +0100 Subject: [PATCH] Fix compiler warning for deprecated function call Replaced the deprecated function call .attach() with an assignment --- drivers/CAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/CAN.cpp b/drivers/CAN.cpp index 50647e5526..37fdf2ec22 100644 --- a/drivers/CAN.cpp +++ b/drivers/CAN.cpp @@ -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);