Browse Source

AP_Arming: create and use INTERNAL_ERROR macro so we get line numbers

c415-sdk
Peter Barker 5 years ago committed by Peter Barker
parent
commit
119eef9954
  1. 2
      libraries/AP_Arming/AP_Arming.cpp

2
libraries/AP_Arming/AP_Arming.cpp

@ -781,7 +781,7 @@ bool AP_Arming::system_checks(bool report) @@ -781,7 +781,7 @@ bool AP_Arming::system_checks(bool report)
#endif
}
if (AP::internalerror().errors() != 0) {
check_failed(report, "Internal errors (0x%x)", (unsigned int)AP::internalerror().errors());
check_failed(report, "Internal errors (0x%x) (last line:%u)", (unsigned int)AP::internalerror().errors(), AP::internalerror().last_error_line());
return false;
}

Loading…
Cancel
Save