display: log handling improved

This commit is contained in:
Romain Bazile 2021-05-06 02:36:29 +02:00
parent 3840b15d7d
commit c6ed5bcf6e

View file

@ -37,7 +37,8 @@ class Display(object):
self.display_text(machineName.replace(" ", "\n"))
def display_text(self, message):
logger.info(f"Displaying message {message}")
text = message.replace("\n", " ")
logger.info(f"Displaying message {text}")
# Clear display.
self.__clear()