From f243e3a626e2f1619778b1bf285d6e52970fac3e Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 30 Jun 2019 08:10:33 +0200 Subject: [PATCH] Output ASCII art image after all init functions (inside main_mobile.c) --- libhagelbarger/hagelbarger.c | 4 ++-- libmobile/image.h | 3 +++ libmobile/main_mobile.c | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 libmobile/image.h diff --git a/libhagelbarger/hagelbarger.c b/libhagelbarger/hagelbarger.c index 7d42bbc..92774a0 100644 --- a/libhagelbarger/hagelbarger.c +++ b/libhagelbarger/hagelbarger.c @@ -5,8 +5,8 @@ * another burst of corrupted bits. * * There is no parity check, so it is required to check all information - * elements of each message. Messages that contain signals or digits are - * protected by repeating the digits in the information element. + * elements of each message. With NMT System: Messages that contain signals + * or digits are protected by repeating the digits in the information element. * * (C) 2017 by Andreas Eversberg * All Rights Reserved diff --git a/libmobile/image.h b/libmobile/image.h new file mode 100644 index 0000000..08a6f5b --- /dev/null +++ b/libmobile/image.h @@ -0,0 +1,3 @@ + +void print_image(void); + diff --git a/libmobile/main_mobile.c b/libmobile/main_mobile.c index 9cf0d74..e516afe 100644 --- a/libmobile/main_mobile.c +++ b/libmobile/main_mobile.c @@ -42,6 +42,7 @@ #endif #include "../liboptions/options.h" #include "../libfm/fm.h" +#include "image.h" #define DEFAULT_LO_OFFSET -1000000.0 @@ -494,6 +495,9 @@ void main_mobile(int *quit, int latency, int interval, void (*myhandler)(void), if (console_open_audio(latspl)) return; + if (!loopback) + print_image(); + /* real time priority */ if (rt_prio > 0) { struct sched_param schedp;