We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f60dac commit 51812d1Copy full SHA for 51812d1
apstools/utils.py
@@ -103,7 +103,7 @@ def to_unicode_or_bust(obj, encoding='utf-8'):
103
def trim_string_for_EPICS(msg):
104
"""string must not be too long for EPICS PV"""
105
if len(msg) > MAX_EPICS_STRINGOUT_LENGTH:
106
- msg = msg[:MAX_EPICS_STRINGOUT_LENGTH]
+ msg = msg[:MAX_EPICS_STRINGOUT_LENGTH-1]
107
return msg
108
109
0 commit comments