From 0d6e2a3d208a3e12f2ff450d2b898616ed158894 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Mon, 19 Dec 2016 01:06:12 -0500 Subject: Closes #7 - retry the control out message --- src/survive.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/survive.c') diff --git a/src/survive.c b/src/survive.c index 09c9ddb..0705801 100644 --- a/src/survive.c +++ b/src/survive.c @@ -68,10 +68,10 @@ static int ParsePoints( struct SurviveContext * ctx, char * ct0conf, SV_FLOAT ** return 0; } -static int LoadConfig( struct SurviveContext * ctx, struct SurviveObject * so, int devno, int iface ) +static int LoadConfig( struct SurviveContext * ctx, struct SurviveObject * so, int devno, int iface, int extra_magic ) { char * ct0conf = 0; - int len = survive_get_config( &ct0conf, ctx, devno, iface ); + int len = survive_get_config( &ct0conf, ctx, devno, iface, extra_magic ); if( len > 0 ) { @@ -153,7 +153,9 @@ struct SurviveContext * survive_init() } //Next, pull out the config stuff. - if( LoadConfig( ctx, &ctx->headset, 1, 0 ) ) goto fail_gracefully; + if( LoadConfig( ctx, &ctx->headset, 1, 0, 0 ) ) goto fail_gracefully; + if( LoadConfig( ctx, &ctx->watchman[0], 2, 0, 1 ) ) goto fail_gracefully; + if( LoadConfig( ctx, &ctx->watchman[1], 3, 0, 1 ) ) goto fail_gracefully; /* int i; -- cgit v1.2.3