diff --git a/ArduPlane/GCS_Plane.h b/ArduPlane/GCS_Plane.h index 33d6becddb..6836ee1dba 100644 --- a/ArduPlane/GCS_Plane.h +++ b/ArduPlane/GCS_Plane.h @@ -12,14 +12,14 @@ public: // return GCS link at offset ofs GCS_MAVLINK_Plane *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_Plane *)_chan[ofs]; } const GCS_MAVLINK_Plane *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_Plane *)_chan[ofs];