Output ASCII art image after all init functions (inside main_mobile.c)
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include "amps.h"
|
||||
#include "dsp.h"
|
||||
#include "frame.h"
|
||||
#include "image.h"
|
||||
#include "stations.h"
|
||||
#include "main.h"
|
||||
|
||||
@@ -326,8 +325,6 @@ int main_amps_tacs(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (!loopback)
|
||||
print_image();
|
||||
sid_stations(sid);
|
||||
|
||||
/* inits */
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"@w",
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -35,7 +35,6 @@
|
||||
#include "anetz.h"
|
||||
#include "dsp.h"
|
||||
#include "stations.h"
|
||||
#include "image.h"
|
||||
|
||||
/* settings */
|
||||
static char operator[32] = "010";
|
||||
@@ -174,9 +173,6 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (!loopback)
|
||||
print_image();
|
||||
|
||||
/* inits */
|
||||
fm_init(fast_math);
|
||||
dsp_init();
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"@g",
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -33,7 +33,6 @@
|
||||
#include "bnetz.h"
|
||||
#include "dsp.h"
|
||||
#include "stations.h"
|
||||
#include "image.h"
|
||||
#include "ansage.h"
|
||||
|
||||
int gfs = 2;
|
||||
@@ -173,9 +172,6 @@ int main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (!loopback)
|
||||
print_image();
|
||||
|
||||
/* inits */
|
||||
fm_init(fast_math);
|
||||
dsp_init();
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"@g _\n"
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -35,7 +35,6 @@
|
||||
#include "sysinfo.h"
|
||||
#include "dsp.h"
|
||||
#include "telegramm.h"
|
||||
#include "image.h"
|
||||
#include "ansage.h"
|
||||
|
||||
/* settings */
|
||||
@@ -493,9 +492,6 @@ int main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!loopback)
|
||||
print_image();
|
||||
|
||||
/* inits */
|
||||
fm_init(fast_math);
|
||||
scrambler_init();
|
||||
|
@@ -48,6 +48,8 @@ static double squelch_db = -INFINITY;
|
||||
int nbfm = 0;
|
||||
int repeater = 0;
|
||||
|
||||
void print_image(void) {}
|
||||
|
||||
void print_help(const char *arg0)
|
||||
{
|
||||
main_mobile_print_help(arg0, "[-F <downlink MHz>,<uplink MHz>] ");
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
void print_image(void)
|
||||
{
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -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 <jolly@eversberg.eu>
|
||||
* All Rights Reserved
|
||||
|
@@ -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;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"",
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -33,7 +33,6 @@
|
||||
#include "nmt.h"
|
||||
#include "frame.h"
|
||||
#include "dsp.h"
|
||||
#include "image.h"
|
||||
#include "tones.h"
|
||||
#include "announcement.h"
|
||||
#include "countries.h"
|
||||
@@ -381,9 +380,6 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (!loopback)
|
||||
print_image();
|
||||
|
||||
/* inits */
|
||||
fm_init(fast_math);
|
||||
rc = init_frame();
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"",
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -34,7 +34,6 @@
|
||||
#include "dsp.h"
|
||||
#include "frame.h"
|
||||
#include "tones.h"
|
||||
#include "image.h"
|
||||
|
||||
/* settings */
|
||||
static int band = 1;
|
||||
@@ -332,9 +331,6 @@ int main(int argc, char *argv[])
|
||||
getchar();
|
||||
}
|
||||
|
||||
if (!loopback && crins != 3)
|
||||
print_image();
|
||||
|
||||
/* inits */
|
||||
fm_init(fast_math);
|
||||
dsp_init();
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "image.h"
|
||||
#include "../libmobile/image.h"
|
||||
|
||||
const char *image[] = {
|
||||
"",
|
||||
|
@@ -1,3 +0,0 @@
|
||||
|
||||
void print_image(void);
|
||||
|
@@ -253,3 +253,5 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void print_image(void) {}
|
||||
|
||||
|
@@ -162,3 +162,5 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void print_image(void) {}
|
||||
|
||||
|
Reference in New Issue
Block a user