Skip to content

Commit

Permalink
Merge pull request #29 from CRSLEE/develop-2
Browse files Browse the repository at this point in the history
Update sml.cpp
  • Loading branch information
olliiiver authored Aug 16, 2023
2 parents 36b8ef6 + f48090d commit fd90f0c
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 fd90f0c

Please sign in to comment.