Invoke register_mode (reads cfg file ) after the Traffic Cop has connected

This commit is contained in:
Ed Gonzalez 2015-01-15 16:23:20 -06:00
parent f053183349
commit 17bf4b036a
2 changed files with 3 additions and 3 deletions

View file

@ -83,9 +83,6 @@ static void _dc_RadioFound(Radio radio)
// start a keepalive to keep the channel open and know when it dies
tc_Init(radio->ip, radio->port);
uint32 result = register_mode();
// quick and dirty fail for now
if (result != SUCCESS) exit(1);
tc_startKeepalive();
usleep(250000);
hal_Listener_Init();

View file

@ -353,6 +353,9 @@ static void* _tc_thread(void* arg)
// if this fails, the program just exits
_tc_openSocket();
result = register_mode();
if (result != SUCCESS) exit(1);
// loop receiving data from SmartSDR and sending it where it should go
while (!_abort)
{