diff options
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 760692c..2ed1986 100644 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -96,6 +96,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; |