From 481760bd42c7a5a6c157cde5f951aee5fdda2603 Mon Sep 17 00:00:00 2001 From: Patrick Goebel Date: Sat, 17 Aug 2013 17:15:43 -0700 Subject: [PATCH] Removed unused self.shutdown variable in arduino_driver.py --- ros_arduino_python/src/arduino_driver.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ros_arduino_python/src/arduino_driver.py b/ros_arduino_python/src/arduino_driver.py index 8eedc8c..f210d14 100755 --- a/ros_arduino_python/src/arduino_driver.py +++ b/ros_arduino_python/src/arduino_driver.py @@ -171,8 +171,7 @@ class Arduino: attempts += 1 except: self.mutex.release() - if not self.shutdown: - print "Exception executing command: " + cmd + print "Exception executing command: " + cmd value = None self.mutex.release() @@ -205,8 +204,7 @@ class Arduino: except: self.mutex.release() print "Exception executing command: " + cmd - if not self.shutdown: - raise SerialException + raise SerialException return [] try: @@ -243,9 +241,8 @@ class Arduino: attempts += 1 except: self.mutex.release() - if not self.shutdown: - print "execute_ack exception when executing", cmd - print sys.exc_info() + print "execute_ack exception when executing", cmd + print sys.exc_info() return 0 self.mutex.release()