Skip to content

Commit

Permalink
PLCTYPE_BYTE means uint8, so ADST_INT8 should mapped to PLCTYPE_SINT
Browse files Browse the repository at this point in the history
TYPE_BYTE means uint8, so ADST_INT8 should mapped to PLCTYPE_SINT
  • Loading branch information
lfncel committed Oct 16, 2024
1 parent f486a72 commit 6734165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyads/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class PLCTYPE_WSTRING:

ads_type_to_ctype = {
# ADST_VOID
ADST_INT8: PLCTYPE_BYTE,
ADST_INT8: PLCTYPE_SINT,
ADST_UINT8: PLCTYPE_UBYTE,
ADST_INT16: PLCTYPE_INT,
ADST_UINT16: PLCTYPE_UINT,
Expand Down

0 comments on commit 6734165

Please sign in to comment.