Skip to content

Commit

Permalink
[Telemetry] Fix phase type. (#2809)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-B committed Dec 13, 2021
1 parent 04379ee commit 7bcb7e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw/lib/ocaml/telemetry.ml
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 7bcb7e2

Please sign in to comment.