From 4e9b0f0d548edde45f8db0aad17fac452523128d Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 3 Oct 2019 22:17:19 +0200 Subject: [PATCH] jp: default to "dark" if background is not set and can't be detected --- sat_frontends/jp/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat_frontends/jp/base.py b/sat_frontends/jp/base.py index 5ac5d8b4..0cd11379 100644 --- a/sat_frontends/jp/base.py +++ b/sat_frontends/jp/base.py @@ -131,9 +131,9 @@ class Jp(object): for c in expected: ch = sys.stdin.read(1) if ch != c: - # background id is not supported + # background id is not supported, we default to "dark" # TODO: log something? - return + return 'dark' red, green, blue = [int(c, 16)/65535 for c in sys.stdin.read(14).split('/')] # '\a' is the last character sys.stdin.read(1)