Browse Source

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

Helmut Pozimski 7 years ago
parent
commit
d944ef7194
1 changed files with 3 additions and 2 deletions
  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()\