From fcf3528bfeba5e4646dbb0626a87c297d940a787 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Thu, 7 Jun 2018 23:42:05 -0600 Subject: Added debug message to ootx; mag reading to playback --- src/survive_cal.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/survive_cal.c') 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; } -- cgit v1.2.3