From 53483bc33fd092d70be211fcaba1db5372e1706d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 3 Jun 2011 16:35:00 +0200 Subject: digital/io-hub: fix bug in head detection workaround --- host/simu/robots/robospierre/model/clamp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/simu/robots/robospierre/model/clamp.py b/host/simu/robots/robospierre/model/clamp.py index d32edf25..4bbe988f 100644 --- a/host/simu/robots/robospierre/model/clamp.py +++ b/host/simu/robots/robospierre/model/clamp.py @@ -206,7 +206,7 @@ class Clamp (Observable): slots[1].pawn is not None or (slots[0].pawn is not None and slots[0].pawn.kind == 'tower')) - slots[2].contact.state = True + slots[2].contact.state = not (slots[2] is not None) if slots[0].pawn: slots[0].codebar.element_type = slots[0].pawn.kind else: -- cgit v1.2.3