mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 09:25:34 +00:00
[nau7802] Replace std::bind with lambda to fit std::function SBO (#14958)
This commit is contained in:
@@ -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