[nau7802] Replace std::bind with lambda to fit std::function SBO (#14958)

This commit is contained in:
J. Nick Koston
2026-03-19 08:41:01 -10:00
committed by GitHub
parent 16ec237ac6
commit 40a65d36b4
+1 -2
View File
@@ -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_() {