From bb11fcba89cc239d71a879a18e87c260d6194af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Mon, 7 Jul 2014 16:22:43 +0200 Subject: [PATCH] Updated the example. --- examples/JsonGeneratorExample/JsonGeneratorExample.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/JsonGeneratorExample/JsonGeneratorExample.ino b/examples/JsonGeneratorExample/JsonGeneratorExample.ino index 84759e7a..71158be8 100644 --- a/examples/JsonGeneratorExample/JsonGeneratorExample.ino +++ b/examples/JsonGeneratorExample/JsonGeneratorExample.ino @@ -12,8 +12,8 @@ void setup() Serial.begin(9600); JsonArray<2> array; - array.add(48.756080, 6); - array.add(2.302038, 6); + array.add<6>(48.756080); // 6 is the number of decimals to print + array.add<6>(2.302038); // if not specified, 2 digits are printed JsonHashTable<3> root; root.add("sensor", "gps");