[Telemetry] Fix phase type. (#2809)

This commit is contained in:
Fabien-B
2021-12-13 23:49:06 +01:00
committed by GitHub
parent 04379ee9a3
commit 7bcb7e2182
+2 -2
View File
@@ -30,7 +30,7 @@ module Message = struct
type t = {
name: string;
period: msg_period;
phase: int option;
phase: float option;
xml: Xml.xml }
let from_xml = function
@@ -44,7 +44,7 @@ module Message = struct
| Some _, Some _ -> failwith "Telemetry.Message.from_xml: either specify 'period' or 'freq' attribute, not both"
| None, None -> failwith "Telemetry.Message.from_xml: specify 'period' or 'freq' attribute"
end;
phase = ExtXml.attrib_opt_int xml "phase";
phase = ExtXml.attrib_opt_float xml "phase";
xml
}
| _ -> failwith "Telemetry.Message.from_xml: unreachable"