[nau7802] Replace std::bind with lambda to fit std::function SBO (#14958)
This commit is contained in:
1 parent
16ec237ac6
commit
40a65d36b4
1 file changed
+1
-2
@@ -83,8 +83,7 @@ void NAU7802Sensor::setup() {
|
||||
|
||||
// turn on AFE
|
||||
pu_ctrl |= PU_CTRL_POWERUP_ANALOG;
|
||||
auto f = std::bind(&NAU7802Sensor::complete_setup_, this);
|
||||
this->set_timeout(600, f);
|
||||
this->set_timeout(600, [this]() { this->complete_setup_(); });
|
||||
}
|
||||
|
||||
void NAU7802Sensor::complete_setup_() {
|
||||
|
||||
Reference in new issue
Block a user