Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
YannLocatelli committed Feb 20, 2024
1 parent 5abad40 commit e4473c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/CoreIMU/source/CoreIMU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ void CoreIMU::setInterruptCallback(std::function<void()> const &callback)
if (callback != nullptr) {
_irq.onRise(callback);
} else {
auto emptyCallback = [] {};
_irq.onRise(emptyCallback);
_irq.onRise([] {});
}
}

Expand Down

0 comments on commit e4473c7

Please sign in to comment.