From cf07aed3859faadf9f53062a10e5b89bb2ada0a9 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 281c18c9b..724e8228a 100755 --- a/tools/at.py +++ b/tools/at.py @@ -1037,7 +1037,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) + '"'