AP_Scripting: add arming check for failed scripts

This commit is contained in:
Iampete1 authored and Andrew Tridgell committed 2022-08-31 17:04:24 +10:00
1 parent c5c09860da
commit e2c29b09ab
4 files changed
+35 -8

No files matched your search

+3
View File
@@ -141,4 +141,7 @@ public:
// must be static for use in atpanic, public to allow bindings to issue none fatal warnings
static void set_and_print_new_error_message(MAV_SEVERITY severity, const char *fmt, ...) FMT_PRINTF(2,3);
// return last error message, nullptr if none
static const char* get_last_error_message() { return error_msg_buf; }
};