Use float instead of double to reduce the size of JsonVariant (issue #134)

This commit is contained in:
Benoit Blanchon
2015-10-30 23:03:16 +01:00
parent 9f3ce18f06
commit c0cf9c3fcc
15 changed files with 170 additions and 81 deletions

View File

@ -60,6 +60,12 @@ size_t Print::print(long value) {
return print(tmp);
}
size_t Print::print(int value) {
char tmp[32];
sprintf(tmp, "%d", value);
return print(tmp);
}
size_t Print::println() { return write('\r') + write('\n'); }
#endif