Skip to content

Commit bec05ee

Browse files
No null terminator in Ros1, so don't truncate the string.
1 parent eedcfe3 commit bec05ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ros_tcp_endpoint/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def handle_syscommand(self, topic, data):
113113
if function is None:
114114
self.send_unity_error("Don't understand SysCommand.'{}'".format(topic))
115115
else:
116-
message_json = data.decode("utf-8")[:-1]
116+
message_json = data.decode("utf-8")
117117
params = json.loads(message_json)
118118
function(**params)
119119

0 commit comments

Comments
 (0)