Skip to content

Commit

Permalink
add property getter and setter start and end tags
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFreyermuth committed Oct 12, 2022
1 parent 3fe12e2 commit 3f0fc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwinCAT3_plc_files_to_src.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_property_src_str_list(root):
setter_dec = m.find('./Set/Declaration').text if m.find('./Set/Declaration') is not None else ''
setter_imp = m.find('./Set/Implementation/ST').text if m.find('./Set/Implementation/ST') is not None else ''

properties.append(f'\n{dec}\n{getter_dec}\n{getter_imp}\n{setter_dec}\n{setter_imp}\nEND_PROPERTY')
properties.append(f'\n{dec}\nPROPERTY_GETTER\n{getter_dec}\n{getter_imp}\nEND_PROPERTY_GETTER\nPROPERTY_SETTER\n{setter_dec}\n{setter_imp}\nEND_PROPERTY_SETTER\nEND_PROPERTY')
return properties


Expand Down

0 comments on commit 3f0fc13

Please sign in to comment.