Skip to content

Commit

Permalink
not replacing TRUE and FALSE inside STRING statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dekuNukem committed Jan 22, 2024
1 parent 09f4d59 commit 7258997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified pc_software/duckypad_config_latest_source.zip
Binary file not shown.
3 changes: 3 additions & 0 deletions pc_software/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
valid_var_chars = set(valid_var_chars)

def replace_DEFINE(pgm_line, dd):
if pgm_line.startswith(cmd_STRING+" ") or pgm_line.startswith(cmd_STRINGLN+" "):
dd.pop("TRUE", None)
dd.pop("FALSE", None)
dd_list_longest_first = sorted(list(dd.keys()), key=len, reverse=True)
temp_line = f" {pgm_line} "
for key in dd_list_longest_first:
Expand Down

0 comments on commit 7258997

Please sign in to comment.