Skip to content

Commit

Permalink
Suppress VI_SUCCESS_MAX_CNT warning on read raw
Browse files Browse the repository at this point in the history
Close #116
  • Loading branch information
hgrecco committed Mar 25, 2015
1 parent 7b3c154 commit 2d5ced6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvisa/resources/messagebased.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def read_raw(self, size=None):
loop_status = constants.StatusCode.success_max_count_read

ret = bytes()
with self.ignore_warning(constants.VI_SUCCESS_DEV_NPRESENT):
with self.ignore_warning(constants.VI_SUCCESS_DEV_NPRESENT, constants.VI_SUCCESS_MAX_CNT):
try:
status = loop_status
while status == loop_status:
Expand Down

0 comments on commit 2d5ced6

Please sign in to comment.