diff --git a/drivers/CoreIMU/source/CoreIMU.cpp b/drivers/CoreIMU/source/CoreIMU.cpp index 31623b8c1e..2ffc359703 100644 --- a/drivers/CoreIMU/source/CoreIMU.cpp +++ b/drivers/CoreIMU/source/CoreIMU.cpp @@ -221,8 +221,7 @@ void CoreIMU::setInterruptCallback(std::function const &callback) if (callback != nullptr) { _irq.onRise(callback); } else { - auto emptyCallback = [] {}; - _irq.onRise(emptyCallback); + _irq.onRise([] {}); } }