AP_Arming: create and use INTERNAL_ERROR macro so we get line numbers
This commit is contained in:
parent
36fd632a49
commit
119eef9954
@ -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…
Reference in New Issue
Block a user