aboutsummaryrefslogtreecommitdiff
path: root/behaviors/EchoBehavior.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-29 21:05:59 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-29 21:05:59 -0500
commit9f69f7a2e174da12e6b2554c4270b5cadc52ff23 (patch)
tree503f63959459fd91cd1c170a390e916b85499a01 /behaviors/EchoBehavior.py
parentb42cab93f90760eaf3f8aac01c2ab41c1a5b1176 (diff)
parentda934a838305bab72bd12dcd2b83e689f7c1cc3f (diff)
Merge branch 'fridaydemo' of https://github.com/smootlight2/SmootLight into smootlight2-fridaydemo
Diffstat (limited to 'behaviors/EchoBehavior.py')
-rw-r--r--behaviors/EchoBehavior.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/behaviors/EchoBehavior.py b/behaviors/EchoBehavior.py
index 6ef4fcb..c4af7c0 100644
--- a/behaviors/EchoBehavior.py
+++ b/behaviors/EchoBehavior.py
@@ -9,6 +9,9 @@ class EchoBehavior(Behavior):
for sensory in sensorInputs:
outDict = {}
outDict[Strings.LOCATION] = sensory[Strings.LOCATION]
- outDict['Color'] = (255,0,0)
+ if self['Color'] != None:
+ outDict['Color'] = self['Color']
+ else:
+ outDict['Color'] = (255,0,0)
ret.append(outDict)
return (ret, [])