diff options
author | Erich Eckner <git@eckner.net> | 2018-11-11 07:56:29 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-11 07:56:29 +0100 |
commit | afae2d40ed4cea9cbd6bd905bef30ca27c382ff6 (patch) | |
tree | 86b31b664350508274f2c3a754d828c0fd00a5ef /anzeige.c | |
parent | bc1220ac154e42f3f927d3e0ff0be1807cc09b67 (diff) | |
download | anzeige-afae2d40ed4cea9cbd6bd905bef30ca27c382ff6.tar.xz |
Güterwaggons neu
Diffstat (limited to 'anzeige.c')
-rw-r--r-- | anzeige.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 = |