From 5f036f9ac828ef2620593ae743ffcc53ec410fcb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 7 Sep 2020 13:42:51 +0200 Subject: warn on outdated information --- anzeige.c | 71 ++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 43 insertions(+), 28 deletions(-) diff --git a/anzeige.c b/anzeige.c index 6f906d9..d235e10 100644 --- a/anzeige.c +++ b/anzeige.c @@ -68,6 +68,7 @@ int main(int argc, char **argv) char *text_buffer; char *text_buffer_end; char text_buffers[OUTPUT_IDX_MAX][MAX_TEXT_OUTPUT_LEN]; + char output_text_buffer[MAX_TEXT_OUTPUT_LEN]; char humidity_text_buffer[MAX_TEXT_OUTPUT_LEN]; double outside_temperature = 0, outside_humidity = 0, inside_temperature = 0, inside_humidity = 0; int updated = 0; @@ -81,9 +82,12 @@ int main(int argc, char **argv) } memset(text_buffer, 0, TEXT_BUFFER_LENGTH); memset(text_buffers, 0, OUTPUT_IDX_MAX * MAX_TEXT_OUTPUT_LEN); + memset(output_text_buffer, 0, MAX_TEXT_OUTPUT_LEN); - for (int i=0; i 15) { -- cgit v1.2.3-70-g09d2