aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-06-07 23:42:05 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-06-07 23:42:05 -0600
commitfcf3528bfeba5e4646dbb0626a87c297d940a787 (patch)
tree8aebd196ab090cef2d2b96a017f86d242c667f9a /src/survive_cal.c
parent9224b6e2ce9747f09d154be2117a43f0d14511ac (diff)
downloadlibsurvive-fcf3528bfeba5e4646dbb0626a87c297d940a787.tar.gz
libsurvive-fcf3528bfeba5e4646dbb0626a87c297d940a787.tar.bz2
Added debug message to ootx; mag reading to playback
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-xsrc/survive_cal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index ad62d22..f809809 100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -45,6 +45,11 @@ int mkdir(const char *);
static void handle_calibration( struct SurviveCalData *cd );
static void reset_calibration( struct SurviveCalData * cd );
+void ootx_error_clbk_d(ootx_decoder_context *ct, const char *msg) {
+ SurviveContext *ctx = (SurviveContext *)(ct->user);
+ SV_INFO("%s", msg);
+}
+
void ootx_packet_clbk_d(ootx_decoder_context *ct, ootx_packet* packet)
{
static uint8_t lighthouses_completed = 0;
@@ -191,7 +196,7 @@ void survive_cal_install( struct SurviveContext * ctx )
cd->ConfigPoserFn = GetDriverByConfig(ctx, "Poser", "configposer", "SBA", 0);
ootx_packet_clbk = ootx_packet_clbk_d;
-
+ ootx_error_clbk = ootx_error_clbk_d;
ctx->calptr = cd;
}