mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-04-10 16:53:44 +00:00
Invoke register_mode (reads cfg file ) after the Traffic Cop has connected
This commit is contained in:
parent
f053183349
commit
17bf4b036a
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue