Skip to content

Commit 035bf50

Browse files
committed
[nasa/nos3#637] synamic TCP selection for yamcs
1 parent 42d94f2 commit 035bf50

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

support/standalone/standalone.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ static volatile uint8_t tc_seq_num = 0;
3333
static volatile uint8_t tc_vcid = CRYPTO_STANDALONE_FRAMING_VCID;
3434
static volatile uint8_t tc_debug = 1;
3535
static volatile uint8_t tm_debug = 0;
36-
37-
#define crypto_use_tcp STANDALONE_TCP
36+
static volatile uint8_t crypto_use_tcp = STANDALONE_TCP ? 1 : 0;
3837

3938
/*
4039
** Functions
@@ -977,7 +976,7 @@ int main(int argc, char *argv[])
977976
status = crypto_standalone_socket_init(&tm_process.write, TM_PROCESS_FWD_PORT, 0, 0); // udp 6011
978977
if (status != CRYPTO_LIB_SUCCESS)
979978
{
980-
printf("crypto_standalone_socket_init tc_apply.write failed with status %d \n", status);
979+
printf("crypto_standalone_socket_init tm_process.write failed with status %d \n", status);
981980
keepRunning = CRYPTO_LIB_ERROR;
982981
}
983982
}

support/standalone/standalone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extern "C"
4747
** Configuration
4848
*/
4949
#define CRYPTOLIB_HOSTNAME "cryptolib"
50-
#define GSW_HOSTNAME "yamcs"
50+
#define GSW_HOSTNAME "cosmos"
5151
#define SC_HOSTNAME "radio-sim"
5252
#define TC_APPLY_PORT 6010
5353
#define TC_APPLY_FWD_PORT 8010

0 commit comments

Comments
 (0)