BATTERY_STATUS: improve filling cell voltage

according to review comment
This commit is contained in:
Matthias Grob
2021-12-07 21:06:51 +01:00
parent b41e345a5b
commit e8676fe87a
2 changed files with 22 additions and 12 deletions
+6
View File
@@ -56,6 +56,12 @@ constexpr _Tp min(_Tp a, _Tp b)
return (a < b) ? a : b;
}
template<typename _Tp>
constexpr _Tp min(_Tp a, _Tp b, _Tp c)
{
return min(min(a, b), c);
}
template<typename _Tp>
constexpr _Tp max(_Tp a, _Tp b)
{