forked from bblanchon/ArduinoJson
Removed default template value for DIGITS, because Arduino 1.0.5 refused it
This commit is contained in:
@ -29,6 +29,11 @@ namespace ArduinoJson
|
||||
items[itemCount++].set(value);
|
||||
}
|
||||
|
||||
void add(double value)
|
||||
{
|
||||
add<2>(value);
|
||||
}
|
||||
|
||||
template<int DIGITS>
|
||||
void add(double value)
|
||||
{
|
||||
|
@ -42,6 +42,11 @@ namespace ArduinoJson
|
||||
itemCount++;
|
||||
}
|
||||
|
||||
void add(const char* key, double value)
|
||||
{
|
||||
add<2>(key, value);
|
||||
}
|
||||
|
||||
using JsonObjectBase::printTo;
|
||||
|
||||
private:
|
||||
|
@ -47,7 +47,7 @@ namespace ArduinoJson
|
||||
content.asString.set(value);
|
||||
}
|
||||
|
||||
template<int DIGITS=2>
|
||||
template<int DIGITS>
|
||||
void set(double value)
|
||||
{
|
||||
printToImpl = &printDoubleTo<DIGITS>;
|
||||
|
Reference in New Issue
Block a user