From f48090d87c987c81d21e98214ebcfe79f87e85ba Mon Sep 17 00:00:00 2001 From: Christian Litterscheid Date: Sat, 12 Aug 2023 13:53:52 +0200 Subject: [PATCH] Update sml.cpp Added Hertz and Degree --- src/sml.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/sml.cpp b/src/sml.cpp index 0edee97..17dbd63 100644 --- a/src/sml.cpp +++ b/src/sml.cpp @@ -403,3 +403,19 @@ void smlOBISAmpere(double &a) a = val; smlPow(a, sc); } + +void smlOBISHertz(double &h) +{ + long long int val; + smlOBISByUnit(val, sc, SML_HERTZ); + h = val; + smlPow(h, sc); +} + +void smlOBISDegree(double &d) +{ + long long int val; + smlOBISByUnit(val, sc, SML_DEGREE); + d = val; + smlPow(d, sc); +}