From f28997e367bacfe2b2873719b5113b9d342f19d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Mon, 7 Jul 2014 16:21:19 +0200 Subject: [PATCH] Added a work around for Arduino 1.0.5 --- JsonGenerator/JsonArray.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/JsonGenerator/JsonArray.h b/JsonGenerator/JsonArray.h index 3ca22d3f..c20c8da3 100644 --- a/JsonGenerator/JsonArray.h +++ b/JsonGenerator/JsonArray.h @@ -39,7 +39,8 @@ namespace ArduinoJson { if (itemCount >= N) return; - items[itemCount++].set(value); + Internals::JsonValue& v = items[itemCount++]; + v.set(value); } using JsonObjectBase::printTo;