This commit is contained in:
Volodymyr Shymanskyy
2017-01-17 12:09:35 +02:00
parent 195233fbaf
commit 78c21aa6ae
4 changed files with 31 additions and 15 deletions

View File

@@ -56,4 +56,16 @@ namespace {
#define DBG(...)
#endif
template<class T>
const T& TinyGsmMin(const T& a, const T& b)
{
return (b < a) ? b : a;
}
template<class T>
const T& TinyGsmMax(const T& a, const T& b)
{
return (b < a) ? a : b;
}
#endif