From 9ec43e7e418f572d8a5aa09cf119bd4115a90bf3 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 17:59:41 +0100 Subject: [PATCH] Fixing the camera 8 wrong var name fixed --- .idea/workspace.xml | 8 ++++---- lib/graphiclib.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 30de114..3488ddd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -41,8 +41,8 @@ - - + + @@ -493,8 +493,8 @@ - - + + diff --git a/lib/graphiclib.py b/lib/graphiclib.py index 3840758..897b957 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -73,7 +73,7 @@ class PiCamera(pygame.sprite.Sprite): pygame.sprite.Sprite.__init__(self) pygame.camera.init() camera = picamera.PiCamera() - self.camsize = (self.size[0], int(self.size[0]/2)) + self.camsize = (size[0], int(size[0]/2)) camera.resolution = self.camsize self.camera = camera self.output = picamera.array.PiRGBArray(camera, size=self.camsize)