summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-11 07:56:29 +0100
committerErich Eckner <git@eckner.net>2018-11-11 07:56:29 +0100
commitafae2d40ed4cea9cbd6bd905bef30ca27c382ff6 (patch)
tree86b31b664350508274f2c3a754d828c0fd00a5ef /anzeige.c
parentbc1220ac154e42f3f927d3e0ff0be1807cc09b67 (diff)
downloadanzeige-afae2d40ed4cea9cbd6bd905bef30ca27c382ff6.tar.xz
Güterwaggons neu
Diffstat (limited to 'anzeige.c')
-rw-r--r--anzeige.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/anzeige.c b/anzeige.c
index 2a41583..2a28867 100644
--- a/anzeige.c
+++ b/anzeige.c
@@ -116,7 +116,15 @@ int main(int argc, char **argv)
for (int i = 0; i < (time_struct . tm_wday + 6) % 7 + 1; i++) {
if (text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end <= 0)
break;
- text_buffer_end += snprintf(text_buffer_end, text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end, "%c%c%c%c", 0xEE, i==0 ? 0x01 : 0x03, 0xEE, i==0 ? 0x02 : 0x04);
+ text_buffer_end += snprintf(
+ text_buffer_end,
+ text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end,
+ "%c%c%c%c",
+ 0xEE,
+ i==0 ? 0x01 : 0x03 + 2 * (i & 0x01),
+ 0xEE,
+ i==0 ? 0x02 : 0x04 + 2 * (i & 0x01)
+ );
}
scroll_data . input_len =