From 7b319cf98da7a350bb350b54592d6dbbacb0ce19 Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Thu, 27 Mar 2014 00:11:08 +0000 Subject: [PATCH] --- Project/applications/smartcities/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project/applications/smartcities/json.c b/Project/applications/smartcities/json.c index 2564b95..6f091fd 100644 --- a/Project/applications/smartcities/json.c +++ b/Project/applications/smartcities/json.c @@ -34,7 +34,7 @@ char* prepare_json_register_statement(char* module_ID, uint8_t sensor_type) str_aux = join_strings(str_aux,str_aux2,length,observation_length,JOIN_FREE_MEM); length += observation_length; } - length--; //REMOVE LAST ',' + length--; json_statement = join_strings(str_aux,"]}",length,2,JOIN_NO_FREE); chHeapFree(str_aux); return json_statement; -- libgit2 0.22.2