From ba5bbcdea7124a030cfdf11805624605c27993ce Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 30 Apr 2020 10:40:47 +1000 Subject: [PATCH] ArduCopter: create and use INTERNAL_ERROR macro so we get line numbers --- ArduCopter/GCS_Copter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/GCS_Copter.h b/ArduCopter/GCS_Copter.h index 85ce8336d2..f51d5acd1b 100644 --- a/ArduCopter/GCS_Copter.h +++ b/ArduCopter/GCS_Copter.h @@ -12,14 +12,14 @@ public: // return GCS link at offset ofs GCS_MAVLINK_Copter *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_Copter *)_chan[ofs]; } const GCS_MAVLINK_Copter *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_Copter *)_chan[ofs];