generators: specify module in settings_autopilot.xml

add module (header file) even if no settings handler is given
This commit is contained in:
Felix Ruess
2017-08-07 13:47:25 +02:00
parent 6d1b59203b
commit 12f143a0ee
+1 -1
View File
@@ -427,7 +427,7 @@ let write_settings = fun xml_file out_set ap ->
match s with
| [m; h] -> sprintf " module=\"%s\" handler=\"%s\"" m h
| _ -> failwith "invalid handler format"
with _ -> "" in
with _ -> sprintf " module=\"autopilot_core_%s\"" name in
(* Print if at least one mode has been found *)
begin match min, max with
| Some min_idx, Some max_idx ->