diff --git a/code/espurna/light.cpp b/code/espurna/light.cpp index 81534e6f..b74936c8 100644 --- a/code/espurna/light.cpp +++ b/code/espurna/light.cpp @@ -650,7 +650,7 @@ struct LightTimerValue { void wait_set(Duration duration, T value) { _timer.once( duration, - [&]() { + [this, value]() { _value = value; }); }