mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 21:37:24 +08:00
[Telemetry] Fix phase type. (#2809)
This commit is contained in:
@@ -30,7 +30,7 @@ module Message = struct
|
|||||||
type t = {
|
type t = {
|
||||||
name: string;
|
name: string;
|
||||||
period: msg_period;
|
period: msg_period;
|
||||||
phase: int option;
|
phase: float option;
|
||||||
xml: Xml.xml }
|
xml: Xml.xml }
|
||||||
|
|
||||||
let from_xml = function
|
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"
|
| 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"
|
| None, None -> failwith "Telemetry.Message.from_xml: specify 'period' or 'freq' attribute"
|
||||||
end;
|
end;
|
||||||
phase = ExtXml.attrib_opt_int xml "phase";
|
phase = ExtXml.attrib_opt_float xml "phase";
|
||||||
xml
|
xml
|
||||||
}
|
}
|
||||||
| _ -> failwith "Telemetry.Message.from_xml: unreachable"
|
| _ -> failwith "Telemetry.Message.from_xml: unreachable"
|
||||||
|
|||||||
Reference in New Issue
Block a user