Skip to content

Commit

Permalink
Merge pull request #688 from bobmcnamara/main
Browse files Browse the repository at this point in the history
fixed a couple bugs around is_64bits
  • Loading branch information
MatthieuDartiailh committed Aug 18, 2022
2 parents 93329a3 + e9aa1b3 commit a7e395b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvisa/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _to_int(x: int) -> int:
VI_ATTR_USER_DATA_32 = 0x3FFF0007
VI_ATTR_USER_DATA_64 = 0x3FFF000A
VI_ATTR_USER_DATA = (
VI_ATTR_USER_DATA_64 if is_64bits else VI_ATTR_USER_DATA_64
VI_ATTR_USER_DATA_64 if is_64bits else VI_ATTR_USER_DATA_32
)
VI_ATTR_FDC_CHNL = 0x3FFF000D
VI_ATTR_FDC_MODE = 0x3FFF000F
Expand Down Expand Up @@ -324,7 +324,7 @@ def _to_int(x: int) -> int:
VI_ATTR_STATUS = 0x3FFF4025
VI_ATTR_RET_COUNT_32 = 0x3FFF4026
VI_ATTR_RET_COUNT_64 = 0x3FFF4028
VI_ATTR_RET_COUNT = VI_ATTR_RET_COUNT_64 if is_64bits else VI_ATTR_RET_COUNT_64
VI_ATTR_RET_COUNT = VI_ATTR_RET_COUNT_64 if is_64bits else VI_ATTR_RET_COUNT_32
VI_ATTR_BUFFER = 0x3FFF4027
VI_ATTR_RECV_INTR_LEVEL = 0x3FFF4041
VI_ATTR_OPER_NAME = 0xBFFF4042
Expand Down

0 comments on commit a7e395b

Please sign in to comment.