aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-03-04 07:12:12 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-03-04 07:12:12 +0100
commit3fc4fc54be56310650a9f7ea1183aa71a3d3ac4d (patch)
tree500dfebbc37eda7b1c2b3184b5df010aa9f13479 /src/anetz
parent4201717f36f1236fd0de1597679f5e9411c8a7eb (diff)
main_common: Move init and cleanup function to main function
Diffstat (limited to 'src/anetz')
-rw-r--r--src/anetz/main.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/anetz/main.c b/src/anetz/main.c
index 0511fb5..4ed63a5 100644
--- a/src/anetz/main.c
+++ b/src/anetz/main.c
@@ -166,10 +166,6 @@ int main(int argc, char *argv[])
if (!loopback)
print_image();
- /* init functions */
- rc = init_common(station_id, 5);
- if (rc < 0)
- goto fail;
dsp_init();
anetz_init();
@@ -183,12 +179,9 @@ int main(int argc, char *argv[])
printf("Base station on channel %d ready, please tune transmitter to %.3f MHz and receiver to %.3f MHz.\n", kanal[i], anetz_kanal2freq(kanal[i], 0) / 1e6, anetz_kanal2freq(kanal[i], 1) / 1e6);
}
- main_common(&quit, latency, interval, NULL);
+ main_common(&quit, latency, interval, NULL, station_id, 5);
fail:
- /* cleanup functions */
- cleanup_common();
-
/* destroy transceiver instance */
while (sender_head)
anetz_destroy(sender_head);