From 610d43556c51cd7ff6e67d591d933588a8c46c40 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 30 Apr 2020 10:40:47 +1000 Subject: [PATCH] Rover: create and use INTERNAL_ERROR macro so we get line numbers --- Rover/GCS_Rover.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rover/GCS_Rover.h b/Rover/GCS_Rover.h index 0ee3615af1..b9fbac77ed 100644 --- a/Rover/GCS_Rover.h +++ b/Rover/GCS_Rover.h @@ -12,7 +12,7 @@ public: // return GCS link at offset ofs GCS_MAVLINK_Rover *chan(const uint8_t ofs) override { if (ofs > _num_gcs) { - AP::internalerror().error(AP_InternalError::error_t::gcs_offset); + INTERNAL_ERROR(AP_InternalError::error_t::gcs_offset); return nullptr; } return (GCS_MAVLINK_Rover*)_chan[ofs]; @@ -20,7 +20,7 @@ public: // return GCS link at offset ofs const GCS_MAVLINK_Rover *chan(const uint8_t ofs) const override { if (ofs > _num_gcs) { - AP::internalerror().error(AP_InternalError::error_t::gcs_offset); + INTERNAL_ERROR(AP_InternalError::error_t::gcs_offset); return nullptr; } return (GCS_MAVLINK_Rover*)_chan[ofs];