mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
added comment
This commit is contained in:
@@ -91,6 +91,8 @@ let parse_element = fun prefix s ->
|
|||||||
"define" -> begin
|
"define" -> begin
|
||||||
try
|
try
|
||||||
begin
|
begin
|
||||||
|
(* fail if units conversion is not found and just copy value instead,
|
||||||
|
this is important for integer values, you can't just multiply them with 1.0 *)
|
||||||
try
|
try
|
||||||
let value = (ExtXml.float_attrib s "value") *. (code_unit_scale_of_tag s) in
|
let value = (ExtXml.float_attrib s "value") *. (code_unit_scale_of_tag s) in
|
||||||
define (prefix^ExtXml.attrib s "name") (string_of_float value);
|
define (prefix^ExtXml.attrib s "name") (string_of_float value);
|
||||||
|
|||||||
Reference in New Issue
Block a user