From a6b5febe3d6ecd6e6f520b0dd58952e039d2e8bc Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 10 Sep 2022 17:07:46 +0100 Subject: [PATCH] AP_Scripting: allow maunal apobject bindings --- libraries/AP_Scripting/generator/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/generator/src/main.c b/libraries/AP_Scripting/generator/src/main.c index c1361d32fa..2f9cbfa7aa 100644 --- a/libraries/AP_Scripting/generator/src/main.c +++ b/libraries/AP_Scripting/generator/src/main.c @@ -1111,8 +1111,11 @@ void handle_ap_object(void) { } string_copy(&(node->dependency), depends); + } else if (strcmp(type, keyword_manual) == 0) { + handle_manual(node, ALIAS_TYPE_MANUAL); + } else { - error(ERROR_SINGLETON, "AP_Objects only support renames, methods or semaphore keyowrds (got %s)", type); + error(ERROR_SINGLETON, "AP_Objects only support renames, methods, semaphore or manual keywords (got %s)", type); } // check that we didn't just add 2 singleton flags