Skip to content

Commit

Permalink
Merge branch 'tools/fix_set_uart0_not_work' into 'master'
Browse files Browse the repository at this point in the history
tools: Fixed that at.py cannot modify to uart0 due to wrong check

See merge request application/esp-at!1265
  • Loading branch information
xcguang committed Nov 25, 2022
2 parents 697168e + a1ebf88 commit 1b0a869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/at.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def at_write_records(records, format, f):
f.write(x)

def at_parameter_assign_int(arg, fixed_len, l, lidx):
if arg:
if arg != None:
l[lidx] = arg & (256 ** fixed_len - 1) if arg >= 0 else -1

def at_parameter_assign_str(arg, fixed_len, l, lidx):
if arg:
if arg != None:
larg = list(arg)
larg = larg + ['\x00'] * (fixed_len - len(larg))
arg_tmp = [x.encode() for x in larg]
Expand Down

0 comments on commit 1b0a869

Please sign in to comment.