From c7166e87dcadf676f19ab1b43ead677b9ac5ce13 Mon Sep 17 00:00:00 2001 From: Chen Wu Date: Thu, 10 Oct 2024 15:12:29 +0800 Subject: [PATCH] fix: gatts_cfg is overly modified by at.py script - Closes https://github.com/espressif/esp-at/issues/865 --- tools/at.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/at.py b/tools/at.py index 2c8c271b8..428dbb2e9 100644 --- a/tools/at.py +++ b/tools/at.py @@ -1055,7 +1055,7 @@ def at_update_param(key, type, value, data): lines = data.split('\n') for i in range(len(lines)): line = lines[i].strip() - if line.startswith(key) and "namespace" not in line: + if line.split(',')[0] == key and 'namespace' not in line: parts = line.split(NVS_KEY_TYPE[type]) if type == 'S': parts[-1] = '"' + str(value) + '"'