Skip to content

Commit

Permalink
Merge branch 'bugfix/gatts_cfg_overly_modified_by_at.py_v3.2.0.0' int…
Browse files Browse the repository at this point in the history
…o 'release/v3.2.0.0'

fix:  gatts_cfg is overly modified by at.py script (v3.2.0.0)

See merge request application/esp-at!1636
  • Loading branch information
xcguang committed Oct 24, 2024
2 parents 5661f48 + c7166e8 commit 571f6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/at.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) + '"'
Expand Down

0 comments on commit 571f6ab

Please sign in to comment.