Skip to content

Commit

Permalink
Remove unused clear functions. #193
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 27, 2019
1 parent 0973150 commit fe7e97e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions terrariumDisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,12 @@ def set_address(self,address):
print('%s - WARNING - terrariumDisplay - %s' % (datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S,%f')[:23],ex))
self.device = None

def clear(self):
if self.device is None:
return
#def clear(self):
# if self.device is None:
# return

self.device.write(str.encode('00clr'))
sleep(1)
# self.device.write(str.encode('00clr'))
# sleep(1)

def display_message(self,text_lines):
if self.device is None or self.animating:
Expand Down
2 changes: 1 addition & 1 deletion terrariumNotification.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def set_display(self,address,hardwaretype,title):
print(ex)
self.display = None

if self.__profile_image is not None:
if self.__profile_image is not None and self.display is not None:
self.display.write_image(self.__profile_image)

def send_display(self,message):
Expand Down

0 comments on commit fe7e97e

Please sign in to comment.