From 8858bf22893cd541135015bc52cacaa5ee618749 Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 1 Mar 2017 18:32:40 +0100 Subject: [PATCH] One in long and short mode are both displayed --- displayword.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/displayword.lua b/displayword.lua index ab2a6b6..3039f8f 100644 --- a/displayword.lua +++ b/displayword.lua @@ -74,10 +74,14 @@ function generateLEDs(words, color) if (words.seven == 1) then buf= buf .. color:rep(6) -- SIEBEN buf= buf .. space:rep(5) - elseif (words.one == 1) then + elseif (words.oneLong == 1) then buf= buf .. space:rep(5) buf= buf .. color:rep(4) -- EINS buf= buf .. space:rep(2) + elseif (words.one == 1) then + buf= buf .. space:rep(6) + buf= buf .. color:rep(3) -- EIN + buf= buf .. space:rep(2) elseif (words.two == 1) then buf= buf .. space:rep(7) buf= buf .. color:rep(4) -- ZWEI