Skip to content

Commit

Permalink
Update sml.cpp
Browse files Browse the repository at this point in the history
Added Hertz and Degree
  • Loading branch information
CRSLEE committed Aug 12, 2023
1 parent ca76a0a commit f48090d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit f48090d

Please sign in to comment.