From 6a7ed2646cb155f172b26eab8579869bb3060afc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 3 Jul 2017 08:50:38 +1000 Subject: [PATCH] Tools: Replay: Use GCS_Dummy GCS singleton --- Tools/Replay/Replay.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Tools/Replay/Replay.cpp b/Tools/Replay/Replay.cpp index 42347c3aba..79b0836d1f 100644 --- a/Tools/Replay/Replay.cpp +++ b/Tools/Replay/Replay.cpp @@ -14,7 +14,7 @@ */ #include -#include +#include #include "Parameters.h" #include "VehicleType.h" #include "MsgHandler.h" @@ -928,12 +928,9 @@ bool Replay::check_user_param(const char *name) return false; } -class GCS_Replay : public GCS -{ - void send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const char *text) override { - ::fprintf(stderr, "GCS: %s\n", text); - } +const struct AP_Param::GroupInfo GCS_MAVLINK::var_info[] = { + AP_GROUPEND }; -GCS_Replay _gcs; +GCS_Dummy _gcs; AP_HAL_MAIN_CALLBACKS(&replay);