Skip to content

Commit

Permalink
Merge branch 'lupien-serial_read_termination'
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed May 6, 2015
2 parents e5f0649 + 8393f36 commit c54a48b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyvisa/resources/messagebased.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def read_termination(self, value):
self.set_visa_attribute(constants.VI_ATTR_TERMCHAR, ord(last_char))
self.set_visa_attribute(constants.VI_ATTR_TERMCHAR_EN, constants.VI_TRUE)
else:
# The termchar is also used in VI_ATTR_ASRL_END_IN (for serial termination)
# so return it to its default.
self.set_visa_attribute(constants.VI_ATTR_TERMCHAR, ord(self.LF))
self.set_visa_attribute(constants.VI_ATTR_TERMCHAR_EN, constants.VI_FALSE)

self._read_termination = value
Expand Down

0 comments on commit c54a48b

Please sign in to comment.