diff options
author | Erich Eckner <git@eckner.net> | 2018-11-08 17:52:08 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-08 17:52:08 +0100 |
commit | bc1220ac154e42f3f927d3e0ff0be1807cc09b67 (patch) | |
tree | 09432c734c5ee7a989cb42c20260366bb78da2ba /multiplexer.c | |
parent | 9ea1d929d7608c2717ac51aee8a9b3ee2df6a30d (diff) | |
download | anzeige-bc1220ac154e42f3f927d3e0ff0be1807cc09b67.tar.xz |
multiplexer.c: clean display buffer when turning off display
Diffstat (limited to 'multiplexer.c')
-rw-r--r-- | multiplexer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/multiplexer.c b/multiplexer.c index 8483c2d..d0ae7c7 100644 --- a/multiplexer.c +++ b/multiplexer.c @@ -65,6 +65,7 @@ void *put_on_display(void *param) if (!display_data -> should_be_on) { if (display_data -> is_on) { turn_off_display(); + memset(display_data -> buf, 0, sizeof(display_data -> buf)); display_data -> is_on = 0; } sleep(1); |