mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Removed unused self.shutdown variable in arduino_driver.py
This commit is contained in:
parent
230d84d097
commit
481760bd42
@ -171,8 +171,7 @@ class Arduino:
|
|||||||
attempts += 1
|
attempts += 1
|
||||||
except:
|
except:
|
||||||
self.mutex.release()
|
self.mutex.release()
|
||||||
if not self.shutdown:
|
print "Exception executing command: " + cmd
|
||||||
print "Exception executing command: " + cmd
|
|
||||||
value = None
|
value = None
|
||||||
|
|
||||||
self.mutex.release()
|
self.mutex.release()
|
||||||
@ -205,8 +204,7 @@ class Arduino:
|
|||||||
except:
|
except:
|
||||||
self.mutex.release()
|
self.mutex.release()
|
||||||
print "Exception executing command: " + cmd
|
print "Exception executing command: " + cmd
|
||||||
if not self.shutdown:
|
raise SerialException
|
||||||
raise SerialException
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -243,9 +241,8 @@ class Arduino:
|
|||||||
attempts += 1
|
attempts += 1
|
||||||
except:
|
except:
|
||||||
self.mutex.release()
|
self.mutex.release()
|
||||||
if not self.shutdown:
|
print "execute_ack exception when executing", cmd
|
||||||
print "execute_ack exception when executing", cmd
|
print sys.exc_info()
|
||||||
print sys.exc_info()
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
self.mutex.release()
|
self.mutex.release()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user