From 9517b303b403d5c2cf805ac1b400d28ffe58c255 Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 21 Nov 2020 23:48:42 +0100 Subject: [PATCH] Fixed a few things, should be usable now --- inkycal/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inkycal/main.py b/inkycal/main.py index 504d423..d12c44d 100644 --- a/inkycal/main.py +++ b/inkycal/main.py @@ -87,6 +87,10 @@ class Inkycal: # check if colours can be rendered self.supports_colour = True if 'colour' in settings['model'] else False + + # get calibration hours + self._calibration_hours = self.settings['calibration_hours'] + # init calibration state self._calibration_state = False @@ -242,7 +246,7 @@ class Inkycal: im_colour = Image.open(f"{self.image_folder}/canvas_colour.png") # Flip the image by 180° if required - if self.settings['orientaton'] == 180: + if self.settings['orientation'] == 180: im_black = upside_down(im_black) im_colour = upside_down(im_colour) @@ -255,7 +259,7 @@ class Inkycal: im_black = self._merge_bands() # Flip the image by 180° if required - if self.settings['orientaton'] == 180: + if self.settings['orientation'] == 180: im_black = upside_down(im_black) Display.render(im_black)