diff options
author | Josh Allen <axlecrusher@gmail.com> | 2017-02-27 21:30:44 -0500 |
---|---|---|
committer | Josh Allen <axlecrusher@gmail.com> | 2017-02-27 21:30:44 -0500 |
commit | 711a55ec79fefbefdc3527c89742acf622aaec3c (patch) | |
tree | f087cb3e592aa5cabc5c7b3d281260f4657ad671 /src/survive_cal.c | |
parent | e8d696e03128242be33eb0734addee645e894635 (diff) | |
parent | 51751d4a9f407f526de2b626d44e14690fbef004 (diff) | |
download | libsurvive-711a55ec79fefbefdc3527c89742acf622aaec3c.tar.gz libsurvive-711a55ec79fefbefdc3527c89742acf622aaec3c.tar.bz2 |
Merge branch 'master' of github.com:cnlohr/libsurvive
Diffstat (limited to 'src/survive_cal.c')
-rw-r--r-- | src/survive_cal.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c index 41d3fb1..f372309 100644 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -101,6 +101,14 @@ void survive_cal_install( struct SurviveContext * ctx ) cd->stage = 1; cd->ctx = ctx; + cd->hmd = survive_get_so_by_name( ctx, "HMD" ); + if( !cd->hmd ) + { + SV_ERROR( "Error: cannot find any devices labeled HMD. Required for calibration" ); + free( cd ); + return; + } + ootx_packet_clbk = ootx_packet_clbk_d; ctx->calptr = cd; |