mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #144 from jfhenriques/master
Fix condition error in view.py when using invert=true
This commit is contained in:
@ -109,7 +109,7 @@ class View(object):
|
|||||||
self._state.has_element(key)
|
self._state.has_element(key)
|
||||||
|
|
||||||
def add_element(self, key, elem):
|
def add_element(self, key, elem):
|
||||||
if self.invert is 1 and elem.color:
|
if self.invert is 1 and hasattr(elem, 'color'):
|
||||||
if elem.color == 0xff:
|
if elem.color == 0xff:
|
||||||
elem.color = 0x00
|
elem.color = 0x00
|
||||||
elif elem.color == 0x00:
|
elif elem.color == 0x00:
|
||||||
|
Reference in New Issue
Block a user