summaryrefslogtreecommitdiff
path: root/host/simu/robots/guybrush/model/clamps.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/simu/robots/guybrush/model/clamps.py')
-rw-r--r--host/simu/robots/guybrush/model/clamps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/simu/robots/guybrush/model/clamps.py b/host/simu/robots/guybrush/model/clamps.py
index 22444f30..40ec41a7 100644
--- a/host/simu/robots/guybrush/model/clamps.py
+++ b/host/simu/robots/guybrush/model/clamps.py
@@ -128,7 +128,7 @@ class Clamps (Observable):
if floor_clamp is None:
new_state = True
else:
- new_state = not self.lower_clamp_content[floor_clamp]
+ new_state = bool (self.lower_clamp_content[floor_clamp])
if new_state != old_state:
for s in self.lower_clamp_sensors:
s.state = new_state