From f93e14ec53ddd632bc80909708a381df7b0fa1c4 Mon Sep 17 00:00:00 2001 From: Daniel Rakos Date: Wed, 16 Aug 2023 15:08:35 +0200 Subject: [PATCH] layer: Fix invalid feature warning --- scripts/gen_profiles_layer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_profiles_layer.py b/scripts/gen_profiles_layer.py index 0fd6f21c..8743052c 100644 --- a/scripts/gen_profiles_layer.py +++ b/scripts/gen_profiles_layer.py @@ -348,7 +348,7 @@ class JsonLoader { if (not_modifiable) { LogMessage(layer_settings, DEBUG_REPORT_WARNING_BIT, "'%s' is not modifiable but the profile value (%s) is different from the device (%s) value (%s)\\n", cap_name, new_value ? "true" : "false", device_name, old_value ? "true" : "false"); - } else { + } else if (new_value) { LogMessage(layer_settings, DEBUG_REPORT_WARNING_BIT, "'%s' profile value is enabled in the profile, but the device (%s) does not support it.\\n", cap_name, device_name); }