Skip to content

Commit

Permalink
fix: gatts_cfg is overly modified by at.py script
Browse files Browse the repository at this point in the history
- Closes #865
  • Loading branch information
ustccw committed Oct 10, 2024
1 parent 7b9487c commit 4706637
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 @@ -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) + '"'
Expand Down

0 comments on commit 4706637

Please sign in to comment.