|
@@ -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()\
|