bugfix in array initialization

This commit is contained in:
Balthasar Reuter
2015-05-06 22:33:21 +02:00
parent dc7502783e
commit 9b297277ac

View File

@@ -145,7 +145,7 @@ def handle_keypress(key):
print "Taking 4 pictures"
size = display.get_size()
image_size = (int(size[0]/2), int(size[1]/2))
filenames = []
filenames = [i for i in range(4)]
for x in range(4):
filenames[x] = camera.take_picture(images.get_next())
display.show_picture(filenames[0], image_size, (0,0))