From 3fc4fc54be56310650a9f7ea1183aa71a3d3ac4d Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 4 Mar 2017 07:12:12 +0100 Subject: main_common: Move init and cleanup function to main function --- src/amps/main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/amps') diff --git a/src/amps/main.c b/src/amps/main.c index b742725..7f83602 100644 --- a/src/amps/main.c +++ b/src/amps/main.c @@ -283,9 +283,6 @@ int main(int argc, char *argv[]) sid_stations(sid); /* init functions */ - rc = init_common(station_id, 10); - if (rc < 0) - goto fail; dsp_init(); init_frame(); @@ -356,12 +353,9 @@ int main(int argc, char *argv[]) printf("Base station on channel %d ready (%s), please tune transmitter to %.3f MHz and receiver to %.3f MHz.\n", kanal[i], chan_type_long_name(chan_type[i]), amps_channel2freq(kanal[i], 0) / 1e6, amps_channel2freq(kanal[i], 1) / 1e6); } - main_common(&quit, latency, interval, NULL); + main_common(&quit, latency, interval, NULL, station_id, 10); fail: - /* cleanup functions */ - cleanup_common(); - /* destroy transceiver instance */ while (sender_head) amps_destroy(sender_head); -- cgit v1.2.3