Skip to content

Commit e4473c7

Browse files
committed
simplify
1 parent 5abad40 commit e4473c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/CoreIMU/source/CoreIMU.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ void CoreIMU::setInterruptCallback(std::function<void()> const &callback)
221221
if (callback != nullptr) {
222222
_irq.onRise(callback);
223223
} else {
224-
auto emptyCallback = [] {};
225-
_irq.onRise(emptyCallback);
224+
_irq.onRise([] {});
226225
}
227226
}
228227

0 commit comments

Comments
 (0)