Skip to content

Commit

Permalink
[generator] warning when unit attribute is used in firmware section
Browse files Browse the repository at this point in the history
see #2252
  • Loading branch information
gautierhattenberger committed Dec 5, 2018
1 parent b2667da commit f7c441e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/tools/generators/gen_aircraft.ml
Expand Up @@ -104,6 +104,10 @@ let flag_xml2mk = fun f ?(target="$(TARGET)") xml ->
let define_xml2mk = fun f ?(target="$(TARGET)") xml ->
let name = Xml.attrib xml "name"
and value = try Some (Xml.attrib xml "value") with _ -> None in
let _ = try
ignore(Xml.attrib xml "unit");
prerr_endline ("Warning: 'unit' attribute for '"^name^"' in firmware section is not handled") with _ -> ()
in
let flag_type = fun s ->
match ExtXml.attrib_or_default xml "type" "raw", value with
| "string", Some v -> "=\\\""^v^"\\\""
Expand Down

0 comments on commit f7c441e

Please sign in to comment.