Skip to content

Commit

Permalink
Improved query of whether a structure is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
msfur committed Oct 8, 2024
1 parent b6e6fac commit bb00d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyads/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def add_device_notification(
"""

if attr is None:
if self.structure_def is not None:
if self.is_structure:
attr = NotificationAttrib(length=self._structure_size)
else:
attr = NotificationAttrib(length=sizeof(self.plc_type))
Expand Down

0 comments on commit bb00d34

Please sign in to comment.