bugfix in array initialization
This commit is contained in:
1 parent
dc7502783e
commit
9b297277ac
1 file changed
+1
-1
+1
-1
@@ -145,7 +145,7 @@ def handle_keypress(key):
|
|||||||
print "Taking 4 pictures"
|
print "Taking 4 pictures"
|
||||||
size = display.get_size()
|
size = display.get_size()
|
||||||
image_size = (int(size[0]/2), int(size[1]/2))
|
image_size = (int(size[0]/2), int(size[1]/2))
|
||||||
filenames = []
|
filenames = [i for i in range(4)]
|
||||||
for x in range(4):
|
for x in range(4):
|
||||||
filenames[x] = camera.take_picture(images.get_next())
|
filenames[x] = camera.take_picture(images.get_next())
|
||||||
display.show_picture(filenames[0], image_size, (0,0))
|
display.show_picture(filenames[0], image_size, (0,0))
|
||||||
|
|||||||
Reference in new issue
Block a user