Преглед на файлове

correct display ids in shutdown sequence, explicitely write to display there

Helmut Pozimski преди 7 години
родител
ревизия
d944ef7194
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      stdd

+ 3 - 2
stdd

@@ -45,8 +45,9 @@ def sighandler(signum, frame):
         LOGGER.info("received SIGTERM, stopping daemon")
     DISPLAY.set_digit(0, 0)
     DISPLAY.set_digit(1, 0)
+    DISPLAY.set_digit(2, 0)
     DISPLAY.set_digit(3, 0)
-    DISPLAY.set_digit(4, 0)
+    DISPLAY.write_display()
     if OPTIONS.daemon:
         if DAEMON.stop():
             sys.exit(0)
@@ -124,7 +125,7 @@ if OPTIONS.daemon:
 
 # Initialize the display object
 DISPLAY = SevenSegment.SevenSegment(address=int(CONFIG.hw_address))
-LOGGER.debug("opened hardware address")
+LOGGER.debug("opened hardware address" % CONFIG.hw_address)
 
 # Set the brightness according to the configuration
 if CONFIG.set_brightness_high < datetime.datetime.now().time()\