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 23, 2024
1 parent a0104e1 commit cf07aed
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 cf07aed

Please sign in to comment.