From a4955ec541ab65646b5e5c7618438974721b494d Mon Sep 17 00:00:00 2001 From: jitendra-kushavah Date: Fri, 23 May 2025 15:54:30 +0530 Subject: [PATCH] Fixed the missing parameter issue Signed-off-by: jitendra-kushavah --- py-json/station_profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-json/station_profile.py b/py-json/station_profile.py index 2fc1970a..9c5431c7 100644 --- a/py-json/station_profile.py +++ b/py-json/station_profile.py @@ -299,7 +299,7 @@ class StationProfile: if (value == 1) and (param_name not in self.desired_add_sta_flags): self.desired_add_sta_flags.append(param_name) self.desired_add_sta_flags_mask.append(param_name) - elif value == 0: + elif value == 0 and (param_name in self.desired_add_sta_flags): self.desired_add_sta_flags.remove(param_name) self.desired_add_sta_flags_mask.append(param_name)