Set a default value for DIGITS

This commit is contained in:
Benoît Blanchon
2014-07-07 13:28:31 +02:00
parent 3b6ce65054
commit adb8fa4d44
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ namespace ArduinoJson
content.asString = value;
}
template<int DIGITS>
template<int DIGITS=2>
void set(double value)
{
printToImpl = &printDoubleTo<DIGITS>;