diff options
-rw-r--r-- | light/Light.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/light/Light.cpp b/light/Light.cpp index 1702603..a9423a0 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -190,10 +190,10 @@ void Light::setLightNotification(Type type, const LightState& state) { } // Fallback to battery light - if (!found && (cur_type == Type::BATTERY || IsLit(state.color))) { + if (!found && (cur_type == Type::BATTERY || IsLit(cur_state.color))) { found = true; LOG(DEBUG) << __func__ << ": type=" << toString(cur_type); - applyNotificationState(state); + applyNotificationState(cur_state); } } } |