From ee1779f736d687ac88f5b24d55b9a9ffc9228d6b Mon Sep 17 00:00:00 2001 From: cole-kenny <36821357+cole-kenny@users.noreply.github.com> Date: Fri, 19 Aug 2022 10:13:40 -0600 Subject: [PATCH] Update SerialClient.py flushInput/Output are maybe depreciated, but adding the flushOutput definition seems to be required. Source here: https://github.com/ros-drivers/rosserial/issues/427 --- rosserial_python/src/rosserial_python/SerialClient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rosserial_python/src/rosserial_python/SerialClient.py b/rosserial_python/src/rosserial_python/SerialClient.py index 6b1b87574..0139a39b4 100644 --- a/rosserial_python/src/rosserial_python/SerialClient.py +++ b/rosserial_python/src/rosserial_python/SerialClient.py @@ -282,6 +282,9 @@ def startSocketServer(self, port, address): def flushInput(self): pass + + def flushOutput(self): + pass def write(self, data): if not self.isConnected: