Removed unnecessary code
This commit is contained in:
parent
10af39c985
commit
3bf7bc0205
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Epd7in5bAdapter (EpdAdapter):
|
||||||
def __get_color__ (self, pixel):
|
def __get_color__ (self, pixel):
|
||||||
color_percent = self.__get_color_percentage__(pixel)
|
color_percent = self.__get_color_percentage__(pixel)
|
||||||
brightness = self.__brightness__(pixel)
|
brightness = self.__brightness__(pixel)
|
||||||
if brightness > 240 or (brightness > 220 and color_percent[0] > 40):
|
if brightness > 240:
|
||||||
return 'white'
|
return 'white'
|
||||||
elif color_percent[0] > 35:
|
elif color_percent[0] > 35:
|
||||||
return 'red'
|
return 'red'
|
||||||
|
|
Loading…
Reference in a new issue